Quote:
Originally Posted by Craigr
Thanks.
No watermarks used for image upload. Before adding it is 514Kb, but once uploaded to the gallery it becomes 1.78Mb. This is the image i am trying to add : http://www.specialforcesroh.com/gallery/file1308.jpg
Is it possibly because the original image is more than the 3020 pixels high and my limit is 3000 pixels so it is re-sizing it, but losing the compression.
|
Yes it looks like it's losing the compression. I have it set to max quality. If you want to see what it's like, try changing the setting.
Open
dbtech/gallery/includes/class_core.php
Find
PHP Code:
imagejpeg($destination_image_handle, $new_name, 100);
and change it to something like
PHP Code:
imagejpeg($destination_image_handle, $new_name, 75);
That reduced the size down to 363k for me and I can't tell the difference between it and the 100 one. If that works, I'll add a setting in the next version for the admin to specify the quality on JPG images
Dylan