minifrontpage thumbnail picture quality

Hi,

Thank you for such a good module.

I have two questions regarding the thumbnail's.

- In the module i set the thumbnail size as 150x100 but all my thumbnail's are still 206x137
- The picture quality of the thumbnails are not good, they are blurry despite that the original picture
is much bigger and better in quality. Is there anything that i can do to get a better quality thumbnail?

Regards,

Aydin
4 years 4 months ago #1 by aydin
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5261) Offline
Hi,
1. Please make sure you have deleted all thumbnail images under the folder images/thumbnail/mod_minifrontpage everytime you change the thumbnail settings, so the thumbnail will be re-generated
https://www.dropbox.com/s%2F0w7naom7zdsleds%2FMonosnap%25202020-07-27%252007-13-11.png?raw=1

2.

- The picture quality of the thumbnails are not good, they are blurry despite that the original picture

I think it's because the module trying to create the generated images that is bigger then the original. Please see this :
- original image ttfweb.ttf.org.tr/images/assets/images/n...53-84725c8708a2.jpeg
- generated thumbnail ttfweb.ttf.org.tr/images/assets/images/n...53-84725c8708a2.jpeg

Try to change 150x100 to 206x137 or 300x200 and see whether the thumbnail image is still blurry or not.

3. Additionally, you can also try to increase the image quality by editing this file ../modules/mod_minifrontpage/Helper/MinifrontpageHelper.php

at lines 227 you will see this code :
if($file_ext == 'png'){ 
					$imagetype = IMAGETYPE_PNG;
					$quality	= '7';
					$file_ext = 'png';
				}elseif($file_ext == 'gif'){ 
					$imagetype = IMAGETYPE_PNG;
					$quality	= '7';
					$file_ext = 'png';
				} else {
					$imagetype = IMAGETYPE_JPEG;
					$quality	= '70';
					$file_ext = 'jpg';

try to change it to
if($file_ext == 'png'){ 
					$imagetype = IMAGETYPE_PNG;
					$quality	= '9';
					$file_ext = 'png';
				}elseif($file_ext == 'gif'){ 
					$imagetype = IMAGETYPE_PNG;
					$quality	= '9';
					$file_ext = 'png';
				} else {
					$imagetype = IMAGETYPE_JPEG;
					$quality	= '90';
					$file_ext = 'jpg';

But please note, by increasing the image quality above, it will add an additional load to your server once when generating thumbnail
4 years 4 months ago #2 by TemplatePlazza
The topic has been marked as resolved.
Hi,

Many thanks for the reply and suggestions.
Problem solved.

Aydin
4 years 4 months ago #3 by aydin
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5261) Offline
No problem Aydin. Glad could help;)
4 years 4 months ago #4 by TemplatePlazza
The topic has been marked as resolved.
I tried to modify the MinifrontpageHelper.php file
the image in the article is almost same size as the thumbnail.
In the article the quality is perfect, the thumbnail is blurry
Changing the quality settings to 90 didn't change a thing
4 years 4 months ago #5 by seppe
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5261) Offline
Hi seppe,

the image in the article is almost same size as the thumbnail.

are you sure none of width or height is bigger than actual image size? Can you share your website url?
4 years 4 months ago #6 by TemplatePlazza
The topic has been marked as resolved.
Powered by Kunena Forum