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
|
|
|
|
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: |
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 9/22/2008(UTC) Posts: 39
|
Ahhh...always something simple. Thank you very much :)
|
|
|
|
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.