Rank: Member
Groups: Member
Joined: 7/20/2006(UTC) Posts: 15
|
Hello, because of Windows Vista we want to upgrade from Version 4.0.x to 4.1.x., but now we have some problems. 1. To reduce traffic and uploadtime we upload just thumbnails instead of the original source files. But version 4.1 doesn't reduce the filesize as version 4.0.x. The uploaded Files are almost as big as the sourcefiles. Same problem is posted by another user (UploadThumbnail1JpegQuality doesn't seem to...). Here is our Code: Code:iu.addParam("UploadSourceFile", "false");
iu.addParam("UploadThumbnail1FitMode", "2");
iu.addParam("UploadThumbnail1Width", "2000");
iu.addParam("UploadThumbnail1Height", "2000");
iu.addParam("UploadThumbnail1JpegQuality", "75");
iu.addParam("UploadThumbnail1ResizeQuality", "High");
iu.addParam("UploadThumbnail1CompressOversizedOnly","false");
2. We can't disable Imagerotation anymore. In Version 4.0.xx we've used: iu.addParam("EnableRotate", "false"); 3. WinXPSP2-detection doesn't work. To help our users by installing the ActiveX-Object, we have two images. One for XPSP2-users and one for users with earlier Versions. But now only the image for earlier Versions appear. Maybe this problem is caused by an Windows-update because it doesn't work wirth Version 4.0.xx anymore. We've used this code: Code:iu.instructionsEnabled=true;
iu.instructionsCommon="";
iu.instructionsNotWinXPSP2="<div><img src='img/local/de/installinfo_notxpsp2.gif' width='690' height='319'></div>";
iu.instructionsWinXPSP2="<div><img src='img/local/de/installinfo_winxpsp2.gif' width='690' height='319'></div>";
We hope you can help us. Thank you! Edited by user Thursday, February 21, 2008 6:22:35 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/20/2006(UTC) Posts: 15
|
Hello, i'd found out, that imagerotation in the uploadpane now is controled with: Code:iu.addParam("AllowRotate", "false");
So this problem is solved. Thank you. Edited by user Thursday, February 21, 2008 6:22:58 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, 1)Try to set the UploadThumbnail1CompressOversizedOnly property value to true. 2)As I see you have already fixed it. 3)Here is how iuembed.js defines if the SP2 is set up: Code:var isXPSP2=(window.navigator.userAgent.indexOf("SV1") != -1);
. From some moment it does not work. As a workaround you could replace this code with the following: Code:var s='';
for (i in navigator)
s+=i+' = '+navigator[i]+'\n';
var isXPSP2=( s.indexOf("SP2") != -1);
but I’m not sure if it works for all browsers. Edited by user Thursday, February 21, 2008 6:23:10 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/20/2006(UTC) Posts: 15
|
Hallo Alex, thank you for your answer. 1) Resize and compression during upload is now working well. It works with: Code:iu.addParam("UploadThumbnail1CompressOversizedOnly","true");
I thought i've tested this already. So this was my fault, sorry. 2) The WinXPSP2 detection don't still work. I think that this is a problem caused by Microsoft. The js output from the userAgent value writes: "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)". And this output is generated by using a WinXPSP2 system. So there's probably no way to detect WinXPSP2 this time. Anyway, thank you for your help. Edited by user Thursday, February 21, 2008 6:23:24 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, Try the code I gave in my previous message. Try this: Code:var s='';
for (i in navigator)
s+=i+' = '+navigator[i]+'\n';
alert(s);
//var isXPSP2=( s.indexOf("SP2") != -1);
And you will se the SP2 word as a part of the string on SP2 machines. Edited by user Thursday, February 21, 2008 6:23:35 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/20/2006(UTC) Posts: 15
|
Hello Alex, thank you again. Before i've posted last time, i've tested your js-code. I'am using a SP2 system but there's no SP2 word in the output. Here is my output: appCodeName = Mozilla appName = Microsoft Internet Explorer appMinorVersion = 0 cpuClass = x86 platform = Win32 plugins = opsProfile = null userProfile = null systemLanguage = de userLanguage = de appVersion = 4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322) userAgent = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322) onLine = true cookieEnabled = true mimeTypes = I'am really use a SP2 system! As you can see, there is no SP2 word. This situation exists with ImageUploader 4.0.xx too. The last time i've tested it with 4.0.xx a few months ago, it worked very well. And we didn't change anything in the configuration. So, i think this is a bug by the dark force (MS). Thank you!
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, You are right. While using IE7 the appMinorVersion parameter really does not contain the SP2 string but IE6 does: Code:appMinorVersion=;SP2;3283;
So by now there is no good variant to check if the SP2 is installed while using IE7. |
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/20/2006(UTC) Posts: 15
|
Hello Alex, thank you again for your answer. If this problem just occures by IE7, the solution should be to check if IE7 is used. To use IE7 on an XP system you must have at least service pack 2. So if IE7 is used and the user don't have vista, the system must be an xpsp2. kind regards
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, So that is a resolution! Thank you for cooperation :) |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.