Thumbnail Size

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Fila
Regular
Posts: 34
Joined: Thu Oct 26, 2006 11:16 am

Thumbnail Size

Post by Fila »

Hello,
I just noticed the the thumbnails size is quite big. For example my image is 500x700 and is 60KB and when the script creates the thumbs with the with 150px the size is 36KB...anyway to make it smaller than that like 10KB or less.

Thanks
Fila
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Thumbnail Size

Post by garvinhicking »

Hi!

Are you using gdlib or imagemagick? The compression quality can sadly only be adjusted within the core include/functions_images.inc.php file...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Fila
Regular
Posts: 34
Joined: Thu Oct 26, 2006 11:16 am

Re: Thumbnail Size

Post by Fila »

garvinhicking wrote:Hi!

Are you using gdlib or imagemagick? The compression quality can sadly only be adjusted within the core include/functions_images.inc.php file...

Regards,
Garvin
Thanks a lot Garvin.. i dont think i have imagemagick on my server :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Thumbnail Size

Post by garvinhicking »

Hi!

Check out the file include/functions_images.inc.php and search for "function serendipity_functions_gd".

There you find $func['qual'] on multiple places. It's set to 100 by default, you can alter that to 90 or 80 for smaller file sizes!

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Fila
Regular
Posts: 34
Joined: Thu Oct 26, 2006 11:16 am

Post by Fila »

Hi garvin..Thanks a lot! My host did install imagemagick on the server. I entered the wrong path before..but its all good now. Imagemagick makes them very small.

Thanks again for help.
Fila
Post Reply