ZenphotoCMS Forum
full-image.php quality level - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: full-image.php quality level (/thread-2011.html)



full-image.php quality level - tehmartin - 2008-01-02

I noticed that the image full-image.php returns is compressed. Reading up on imagejpeg on http://us2.php.net/imagejpeg tells us that without quality specified, it will use the IJG default (about 75).

I would suggest changing the (nearly) last line of full-image.php from
imagejpeg($newim);
to either
imagejpeg($newim,NULL,100);
or
imagejpeg($newim,NULL,$quality);

I would lean more towards defaulting to 100, or perhaps adding a full sized image quality option to the admin options and using $full_quality or something like that.

Found in version 1.1.3

-Thomas




full-image.php quality level - sbillard - 2008-01-02

Good idea, New functionality (with option) will be in an update soon.




full-image.php quality level - tehmartin - 2008-01-03

Noticed the change in the nightly build for 01.01.2008 and I also noticed that the switches in full-image.php are not case insensitive. Most of my images are *.JPG, so view full image wasn't working until I changed the code some.

Also, since I haven't said it before, zenphoto is great great great!!! I am humbled that you accepted my tiny suggestion.

-Thomas




full-image.php quality level - sbillard - 2008-01-03

Thanks for pointing out the case sensitivity. It will be fixed in tonight's build.