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

Notification

Icon
Error

Options
Go to last post Go to first unread
jgibbs  
#1 Posted : Sunday, November 30, 2008 9:29:08 PM(UTC)
jgibbs

Rank: Advanced Member

Groups: Member
Joined: 9/22/2008(UTC)
Posts: 39

I noticed, with the new 5.7 update, that when I used this code:

iu.addParam("UploadSourceFile", "false");

iu.addParam("UploadThumbnail1FitMode", "ActualSize");

iu.addParam("UploadThumbnail1CopyExif", "true");

the file size of the image that is uploaded for thumbnail1 is actually doubled (ex - 2 MB file turns into a 4 MB file).

Why is that? How do you prevent that from happening?

Thanks

Tamila  
#2 Posted : Tuesday, December 2, 2008 6:03:20 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Member
Joined: 3/9/2008(UTC)
Posts: 554

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

As I can see in your code you do not use JpegQuality property. The default value is 100. In this case you can get thumbnail which can be bigger than original file.

To resolve this problem you can set JpegQuality in 90 or 80.

Another way is ComprssOversizedOnly property. It allow to upload source file in case when original image dimensions and file size are not greater than dimensions and file size of the first thumbnail.

Read these articles to get more information about JpegQuality and ComprssOversizedOnly properties:

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!

jgibbs  
#3 Posted : Tuesday, December 2, 2008 7:41:59 PM(UTC)
jgibbs

Rank: Advanced Member

Groups: Member
Joined: 9/22/2008(UTC)
Posts: 39

Ahhh...always something simple. Thank you very much :)
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.