Rank: Member
Groups: Member
Joined: 10/19/2005(UTC) Posts: 27
|
We use Image uploader Dual and notice that the client-side resize function in the Java version is poorer quality than the ActiveX version. Any Ideas why? Here is a link to the high-resolution to download and do your own testing: http://clickimage.com/test/aurigma/87224DYR.jpgHere is the image uploaded and resized using IE(ActiveX): [Image was removed] Here is the image uploaded and resized using Firefox(Java): [Image was removed] In the second picture above you can see the hair is very bad and the quality of the sweater is also bad. Please see my code: Code:<script language="javascript">
var iu = new ImageUploaderWriter("ImageUploader", 730, 350);
iu.activeXControlEnabled = true;
iu.javaAppletEnabled = true;
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../ImageUploader4.5/ImageUploader4.cab";
iu.activeXControlVersion = "4,5,4,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "../ImageUploader4/";
iu.javaAppletVersion = "2.1.1.0";
iu.javaAppletCached = true;
//Configure upload settings.
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "10");
iu.addParam("AutoRecoverTimeOut", "10000");
//Customize appearance and behavior.
iu.addParam("PaneLayout", "OnePane");
iu.addParam("UploadView", "Details");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("EnableRotate", "false");
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("DropFilesHereText", ">>>> DRAG and DROP Image Files here and press Upload <<<<");
//Customize Image Uploader buttons.
iu.addParam("ButtonAddFilesText", "Add Photos...");
iu.addParam("ButtonAddFoldersText", "Add Folders of Photos...");
iu.addParam("ButtonSendText", "");
iu.addParam("MessageUploadCompleteText", "");
//Configure custom button caching.
iu.addParam("CacheGuiGraphics","true");
iu.addParam("GuiGraphicsVersion","1");
iu.addParam("LicenseKey","XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
iu.addParam("UploadThumbnail1FitMode", "fit");
iu.addParam("MessageUploadFailedText", "Upload failed because the internet connection was interrupted. Please check your internet connection and try again.");
iu.addParam("MessageUnexpectedErrorText", "An uploading error occurred. Please contact Customer support (1-888-88MYPHOTO).");
iu.addParam("EnableRotate", "False");
iu.addParam("UploadThumbnail1Width", "1000");
iu.addParam("UploadThumbnail1Height", "400");
iu.addParam("UploadThumbnail1FitMode", "fit");
iu.addParam("UploadThumbnail1JpegQuality", 100);
iu.addParam("UploadSourceFile", "false");
iu.addParam("ShowUploadCompleteMessage", "false");
iu.addParam("BackgroundColor", "#f5f5f5");
iu.addParam("PaneBackgroundColor", "#FFFFFF");
iu.addParam("ShowFileNames", "False");
iu.addParam("ShowDescriptions", "False");
iu.addParam("ShowDebugWindow", "True");
iu.addParam("AdditionalFormName", "frm");
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
//iu.addParam("SignatureFilter", "Images");
iu.addParam("FileMask", "*.jpg;*.jpeg;*.gif");
//We MUST initialize the Action param here because MAC Firefox will cause an error if we don't preinitialize.
iu.addParam("Action","ABCPortfolioBatchUpload.asp?hidEditId=<%=intID%>&photographerID=<%=Session("photographerID")%>&pagetype=<%=portfoliotypeID%>&PortfolioName=<%=server.URLEncode(PortfolioName)%>&hidShowPage=<%=intSwitch%>&watermark_flag=<%=watermark_flag%>&htmlTitle=<%=portfolioHtmltitle_URL%>&website_typeID=<%=websitetypeID%>&imgSize="+document.frm.img_size.value);
iu.writeHtml();
</script>
Edited by user Friday, December 18, 2009 8:27:09 PM(UTC)
| Reason: Not specified
|