It is currently Sat Dec 15, 2018 5:40 pm

All times are UTC + 1 hour [ DST ]

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Thumbnails image quality
PostPosted: Sat Jan 19, 2013 7:04 pm 

Joined: Sat Jan 19, 2013 6:25 pm
Posts: 2
What can I do, if the generated thumbnails are too much compressed – they look quite pixelated?
The size of the images, I've uploaded ist 533 x 800px and the thumbnails are 150 x 226px.
Is there any possibility to control the compression? The original pictures are web saved with 80% quality and look excellent, but maybe this is the problem here?
Thank you for any answers:)

 Post subject: Thumbnails image quality
PostPosted: Sat Jan 19, 2013 7:04 pm 
PostPosted: Wed Jan 23, 2013 11:19 am 
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
When thumbnails are created we didn't set any Quality parameter, so it defaults, as written on, to 75% in case of jpeg images.
There is 3 different cases when creating a thumbnail, for JPEG, PNG and GIF.

In case of JPEG we use imagejpeg(), JPG is a lossy compression and default quality is 75%.
You can change this in : [JoomlaRoot]\plugins\content\admirorgallery\admirorgallery\classes\agHelper.php:line 398
@imagejpeg($dst_img, $thumb_file);

Just add 90 as a third parameter:
@imagejpeg($dst_img, $thumb_file,90);

Experiment with the quality value and see if the quality of thumbs is improved.

Just be sure to remove the previous generated thumbnails after you make change in quality value. Because thumbnails are recreated only in case dimensions of thumbnails are changed.
Thumbnails are created in [JoomlaRoot]\plugins\content\admirorgallery\admirorgallery\thumbs.

In case of PNG we use imagepng(), and the default compression rate is 6. Different than JPEG, for PNG 0 is no compression (biggest file and best) and 9 is most compressed. But this doesn't affect the image quality because PNG is a lossless image format.
Same as for JPEG you can change the parameters in the function, but it will not produce better images.

In case of GIF we use imagegif(), this is also a lossless compression so quality cannot be changed. And the function dose not have an option to set quality.

Considering the above, you probably use JPEG images so you can try as I suggested for JPEG images.

Help Admiror Gallery become even better,
give us a review on JED

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC + 1 hour [ DST ]

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group