Page 1 of 1

A question about jpeg compression in Phoca Gallery

Posted: 06 Oct 2009, 19:21
by AndreaNobili
Hello,
I am a photographer and I am realizing my photo gallery using Joomla + Phoca Gallery so I need the best picture quality.

I have noticed that also if I set to 100 (the maximum jpeg quality) the value of field "JPEG Quality" in the "Thumbnail Creation Settings" of Phoca Gallery Settings, when I upload my photo Phoca Gallery creates a new "phoca_thumb_myfilename" file that is a compressed file and I loose slightly the image quality.

For example if I upload a file named: "Camogli1corn.jpg" that is 872X672 pixel and 372 Kb, Phoca Gallery create and show an other file named "phoca_thumb_l_camogli1corn.jpg" that have the same dimension in pixel but it has an inferior weight in term of kb, infact this new file is 330 Kb.

So i think that the new file endures an ulterior Jpeg compression. I don't like it and I prefer that Poca Galery shown my original file, is it possibile? What I must make?

Best regards
Andrea

Re: A question about jpeg compression in Phoca Gallery

Posted: 06 Oct 2009, 20:26
by Jan
Hi, Phoca Gallery doesn't create the thumbnails, thumbnails are created by GD library on your server. If you don't like the quality which produces your GD library, there are two possible ways:

- you can create the thumbnails by yourself (or use original images) and you will rename these images as thumbnails and will overwrite the current on your server
- or you can set the highslide js + original images for displaying detail images (original image will be displayed instead of large thumbnails)

Jan

Re: A question about jpeg compression in Phoca Gallery

Posted: 07 Oct 2009, 16:48
by AndreaNobili
Thanks,
please can you explain me what I have to do to apply the second method?

Tnx
Andrea

Re: A question about jpeg compression in Phoca Gallery

Posted: 07 Oct 2009, 18:12
by Jan
You will set it in parameters (highslide method js, set original image to yes), see:
https://www.phoca.cz/documents/2-phoca-g ... -menu-item

Jan

Re: A question about jpeg compression in Phoca Gallery

Posted: 07 Nov 2009, 22:55
by Mark v/d Walle
This solves my problem also (option 2), but now i can`t use shadowbox anymore. It seems that shadowsbox increas the quality ?

Re: A question about jpeg compression in Phoca Gallery

Posted: 10 Nov 2009, 22:02
by Jan
It seems that shadowsbox increas the quality ?
No idea how would shadowbox do it?

Re: A question about jpeg compression in Phoca Gallery

Posted: 13 Dec 2009, 00:11
by potrebic
I am running into this same exact problem. I'm in a camera club and building out our web site with 1000's of images (www.calistogacameraclub.net). Many members are serious artists/photographers. The quality of the thumbnails (even when qual is set to 100) is very poor. I just switched to using the Highslide viewer (which seems to have bugs in terms of escaping file names... probably similar to the issue I reported with JAX Lightbox). That is improvement because it can show original image.

But that still leaves a problem with CoolIris. I have Cooliris showing the original image when in full window mode, but it still uses the Large thumbnail when looking at the Cooliris wall. The GD compression is amazingly poor in terms of color. Argh. Rewriting the cooliris RSS code would be simple enough, to just use orginal, but that bogs down cooliris and results in a cooliris 3D wall taking a long time to render because it has to deal with 20-30 full size images (each around 1 Meg in size).

Re: A question about jpeg compression in Phoca Gallery

Posted: 13 Dec 2009, 01:10
by Jan
But that still leaves a problem with CoolIris. I have Cooliris showing the original image when in full window mode, but it still uses the Large thumbnail when looking at the Cooliris wall. The GD compression is amazingly poor in terms of color. Argh. Rewriting the cooliris RSS code would be simple enough, to just use orginal, but that bogs down cooliris and results in a cooliris 3D wall taking a long time to render because it has to deal with 20-30 full size images (each around 1 Meg in size).
Yes in fact you have answered the issue :( :( The large thumbnail is displayed in cooliris because loading time. It is not problem to set original image as thumbnail in cooliris rss but the problem will be with loading :( It is still internet and you need to choose between quality and speed :-(