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

Notification

Icon
Error

Options
Go to last post Go to first unread
some_coder  
#1 Posted : Tuesday, April 1, 2008 3:53:36 AM(UTC)
some_coder

Rank: Member

Groups: Member
Joined: 3/14/2008(UTC)
Posts: 16

I am having problem with resizing jpegs. I have these lines of code

Code:
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("MaxFileCount", maxFileCount);
iu.addParam("MaxFileSize", maxFileSize);
iu.addParam("MinImageHeight", "1");
iu.addParam("MinImageWidth", "1");

//upload thumbnail settings
iu.addParam("UploadThumbnail1CopyExif", "true");
iu.addParam("UploadThumbnail1CopyIptc", "true");


iu.addParam("UploadThumbnail1JpegQuality","90");
iu.addParam("UploadThumbnail1FitMode", "Width");
iu.addParam("UploadThumbnail1Width", "600");
iu.addParam("UploadThumbnail1FallbackMode", "SourceFile");


In Java version, when I have animated gifs and jpeg in the same folder( My pictures). The jpegs are not resized properly. It always resizes to 160x120 size. The png and gifs upload the actual size which is right. I just want to resize jpegs.
When I remove animated gifs from the folder, I am uploading (i.e MY Pictures) then the jpegs upload fine. Any info would be helpful.

Thanks

Edited by user Thursday, May 22, 2008 2:03:16 PM(UTC)  | Reason: Not specified

Eugene Kosmin  
#2 Posted : Wednesday, April 2, 2008 12:42:56 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 422

Was thanked: 15 time(s) in 15 post(s)
Hello,

What version you are using? Did you try the last version?
Best regards,
Eugene Kosmin.
Aurigma Development Team
some_coder  
#3 Posted : Wednesday, April 2, 2008 1:25:35 PM(UTC)
some_coder

Rank: Member

Groups: Member
Joined: 3/14/2008(UTC)
Posts: 16

I am using ImageUplader4.5 Haven't tried the last version yet. I saw where the problem is happening, in getExifThumbnail function the desired thumbnail parameters are being overridden. My question now is when there is a desired height or width and fit mode, why overwrite the desired thumbnail size ? Also is it really necessary to call getExifThumbail from getBufferedImageFromFile , because when uploading we just need the thumbnail and not the exif thumbnail.

If this problem is taken care off in 5.0 we will upgrade to 5.0. depending on the management decision.

I also was wondering if you provide documentation to the Java version of Image Uploader.

Thanks
Eugene Kosmin  
#4 Posted : Wednesday, April 2, 2008 7:42:02 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 422

Was thanked: 15 time(s) in 15 post(s)
I guess I reproduced your problem. Thumbnail size was correct but quality was extremely slow, it looked like resized EXIF thumbnail.

The issue is still present in Image Uploader 4.7 bundle, but fixed in the last IU 5.1. Please try to reproduce it with IU 5.1.
Best regards,
Eugene Kosmin.
Aurigma Development Team
some_coder  
#5 Posted : Thursday, April 3, 2008 3:06:12 AM(UTC)
some_coder

Rank: Member

Groups: Member
Joined: 3/14/2008(UTC)
Posts: 16

I installed the demo 5.1 version . The thing i noticed is there is this one image which is not being shown as a thumbnail. It shows a very small preview icon. It uploads as 0x0 dimensions but when I ask it open in a new window it opens the image.

thanks

Edited by user Thursday, May 22, 2008 2:04:54 PM(UTC)  | Reason: Not specified

George Ulyanov  
#6 Posted : Wednesday, April 9, 2008 4:55:18 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups:
Joined: 7/26/2006(UTC)
Posts: 203

Hello,

I've tested this problem image and found that it has incorrect color profile. There is the info that Photoshop gave me:

"The embedded ICC profile cannot be used because the ICC profile is invalid. Ignoring the profile."

So, an image library used for thumbnails generating in Image Uploader also couldn't get this profile and considered that this image as corrupted (as it is).
You can get more detailed information about this behavior here:
"Loading images from image files".

Edited by user Wednesday, April 9, 2008 4:55:58 PM(UTC)  | Reason: Not specified

Best regards,
George Ulyanov
Users browsing this topic
Similar Topics
Problem Resizing Jpegs (Discussions – ActiveX/Java Uploader)
by some_coder 4/1/2008 3:50:40 AM(UTC)
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.