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

Notification

Icon
Error

Options
Go to last post Go to first unread
captain_torche  
#1 Posted : Monday, August 28, 2006 12:01:06 AM(UTC)
captain_torche

Rank: Member

Groups: Member
Joined: 5/3/2006(UTC)
Posts: 4

Good afternoon.

I'm using Image Uploader (3,5,129,3 for ActiveX and 1.1.3.6 for Java), and I experience a little problem.

To limit server stress when converting the images, I would like to create the thumbnails on client side.

I have two thumbnails to create, plus the original image.

Here is the code :

Code:
		iu.addParam('UploadSourceFile', 'true');
		
		iu.addParam('UploadThumbnail1FitMode','fit');
		iu.addParam('UploadThumbnail1Height', '384');
		iu.addParam('UploadThumbnail1Width', '384');
		iu.addParam("UploadThumbnail1JpegQuality", "80");

		
		iu.addParam('UploadThumbnail2FitMode','fit');
		iu.addParam('UploadThumbnail2Height', '96');
		iu.addParam('UploadThumbnail2Width', '96');
		iu.addParam("UploadThumbnail2JpegQuality", "90");

When the image is much larger than longer (my test image is 1024px width and 50px height), the first thumbnail creates well (ie its maximum size is 384 px), but the second one (which should be 96px large), is still 384px large.

Strangely, when I upload the same image which I rotated before (so it's 1024px height and 50px width), I Haven't got the problem: the first and second thumbnail's sizes are correct (they respectively fit in a 384px and 96px square).

The problem occurs only on the Java version, the ActiveX version handles it well.

Edited by user Tuesday, February 19, 2008 1:32:08 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Thursday, August 31, 2006 8:32:31 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

sorry for the long delay.

I have tried to reproduce your problem but it works fine. Here is the information about testing:

Original Image Width: 1208

Original Image Height: 21

ImageUploader for Java version: 1.1.02

Thumbnail1Width: 384

Thumbnail1Height: 7

Thumbnail2Width: 96

Thumbnail2Height: 2

ImageUploader for Java version: 2.0.50

Thumbnail1Width: 384

Thumbnail1Height: 6

Thumbnail2Width: 96

Thumbnail2Height: 1

ImageUploader for ActiveX version: 4.0.47.0

Thumbnail1Width: 384

Thumbnail1Height: 6

Thumbnail2Width: 96

Thumbnail2Height: 1

So the results are correct. Try to update to the last version, it should help.

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Guest
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.