I've just published a post with a text-based image (too bad for jpg) - 900x471px, text "Bootstrap classes", large letters (72 font-size). The PhotoShop export looked great, 75 JPG quality and 33 kB in size. I uploaded it to my site, added to the article and got shocked by the compression it must have gone through. The file got like 8 kB smaller, but the quality went down rapidly (I'm aware that it looked so bad just because there's the text in the image, but that's what the image is like and I can't use PNG because of pic.php - I could edit it, but I don't need png for every post's image).
So I checked pic.php and changed line 75
so that the quality became 100.
Now, it almost doesn't decrease the quality (it still does but nothing serious), but the filesize is now 88 kB instead of 33 kB (and the quality is still slightly worse as it uselessly (in this case) went though the jpeg generating process again).
I don't really need News Manager to recompress my images - I do upload them in the final resolution that I use on the frontend. I'm fine with recompression for the sidebar thumbs, but for the main image not - it just causes my files to be bigger or/and worse quality.
I know I could play with the number and set 90 or something like that, but I'd be glad if I could just choose to skip the recompression for the nmimage*.jpg that is not gonna be resized (uploaded in the final resolution) and also change the quality value in the administration via custom settings in the textarea.
Is there a possibility that you'll add such feature in the future?
Thank you. If not, I'll edit pic.php myself and just overwrite it each time I update, but there might be other people that would use this feature as well - who knows. Just an idea, thanks for consideration
So I checked pic.php and changed line 75
Code:
imagejpeg($dst, $thumbdir.$outfile, 75);
Now, it almost doesn't decrease the quality (it still does but nothing serious), but the filesize is now 88 kB instead of 33 kB (and the quality is still slightly worse as it uselessly (in this case) went though the jpeg generating process again).
I don't really need News Manager to recompress my images - I do upload them in the final resolution that I use on the frontend. I'm fine with recompression for the sidebar thumbs, but for the main image not - it just causes my files to be bigger or/and worse quality.
I know I could play with the number and set 90 or something like that, but I'd be glad if I could just choose to skip the recompression for the nmimage*.jpg that is not gonna be resized (uploaded in the final resolution) and also change the quality value in the administration via custom settings in the textarea.
Is there a possibility that you'll add such feature in the future?
Thank you. If not, I'll edit pic.php myself and just overwrite it each time I update, but there might be other people that would use this feature as well - who knows. Just an idea, thanks for consideration
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple