Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
clickimage  
#1 Posted : Monday, July 2, 2007 2:58:54 PM(UTC)
clickimage

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.jpg

Here 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

Alex Makhov  
#2 Posted : Monday, July 2, 2007 7:00:44 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Please try to set the UploadThumbnail1ResizeQuality property value to High and compare the results.

Edited by user Saturday, February 23, 2008 9:43:02 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
clickimage  
#3 Posted : Tuesday, July 3, 2007 8:25:38 AM(UTC)
clickimage

Rank: Member

Groups: Member
Joined: 10/19/2005(UTC)
Posts: 27

Hello Alex,

Thanks for your quick reply. I added the following line of code and the same quality problem exists. I have provided the high-resolution version in the first reply. You'll also see a good resize using ActiveX and a bad quality resize using Java. Can you confirm on your test systems? I'd also be happy to do any other suggestions if you wish.

Thanks,
Andrew
Alex Makhov  
#4 Posted : Monday, July 9, 2007 1:59:01 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

As far as I know there is already a fix for your problem – you should set the UploadThumbnail1JpegQuality parameter value to the higher value, e.g. 100.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
clickimage  
#5 Posted : Friday, July 13, 2007 4:40:50 AM(UTC)
clickimage

Rank: Member

Groups: Member
Joined: 10/19/2005(UTC)
Posts: 27

Hello Alex,

As you can see from my first posting of this topic I have copied the code to you. In the code I already have the parameter you recommend me set to %100. Would you like me to set this code up on our test server so that you can execercise the test? Run it in IE and you will see good quality. Run it in Firefox and you will see poor quality.
Alex Makhov  
#6 Posted : Friday, July 13, 2007 12:16:25 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

OK, please, give me the link to test it.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
io  
#7 Posted : Tuesday, August 28, 2007 6:55:32 AM(UTC)
io

Rank: Member

Groups: Member
Joined: 6/25/2006(UTC)
Posts: 20

Exactly the same quality difference are existing between ImageCopyResampled() and ImageCopyResized() methods in PHP. Hope this helps.
io  
#8 Posted : Tuesday, August 28, 2007 7:09:23 AM(UTC)
io

Rank: Member

Groups: Member
Joined: 6/25/2006(UTC)
Posts: 20

Just a short demo.
http://io.com.ua/t_aus.php?v=Resized
http://io.com.ua/t_aus.php?v=Resampled

t_aus.php:
Code:
Header("Content-type: image/jpeg");
$ag = GetImageSize("test.jpg");
$src_w = $ag[0];
$src_h = $ag[1];
$new_w = 300;
$factor = $src_w/$new_w;
$new_h = ceil($src_h/$factor);
$src_id = ImageCreateFromJpeg("test.jpg");
$new_id = ImageCreateTrueColor($new_w,$new_h);
$pic_icr=($v=='Resized')?ImageCopyResized($new_id,$src_id,0,0,0,0,$new_w,$new_h,$src_w,$src_h):ImageCopyResampled($new_id,$src_id,0,0,0,0,$new_w,$new_h,$src_w,$src_h);
ImageJpeg($new_id);
ImageDestroy($im);

Edited by user Monday, December 17, 2007 1:17:31 PM(UTC)  | Reason: Not specified

Alex Makhov  
#9 Posted : Wednesday, August 29, 2007 1:14:13 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
Joined: 8/3/2003(UTC)
Posts: 998

Hello,
Image Uploaders don’t use PHP to resize images. Image Uploader for ActiveX uses our own image processing library and Image Uploader for Java uses standard libraries so that is a reason of less quality.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
io  
#10 Posted : Thursday, August 30, 2007 8:47:08 PM(UTC)
io

Rank: Member

Groups: Member
Joined: 6/25/2006(UTC)
Posts: 20

Oh, this is for sure :)
I meant just a difference between image processing methods in different languages. PHP is just illustrating that there are methods with different accuracy and this is a reason of different image quality.
Alex Makhov  
#11 Posted : Sunday, September 2, 2007 12:34:41 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Yes, you are right. As Image Uploader for ActiveX and Image Uploader for Java are completely different programs written on different languages, the quality is different. We will try to make the thumbnail quality better.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.