Disable large thumb creation

Phoca Gallery - image gallery extension
bigwill
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 23:19

Disable large thumb creation

Post by bigwill »

Hi,
i'm now using phoca on my web site. This script is really great but i found a small problem with large thumbs. In fact, i saw a loss of quality with large thumbs, so i hacked the script to make it use the pictures i upload. But large thumbs are still created and i don't need it.
So i would like to know if it was possible to disable large thumb creation and where i had to hack the script.
Thanks,
Will
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable large thumb creation

Post by Jan »

Hi, no, the whole system works with 3 thumbnails:

- small
- medium
- large

there are so many place wher you should change the code because of changing large to original so I don't know them :-(

If you create jpg, you can change the quality of thumbnails here:

administrator\components\com_phocagallery\helpers\phocagallery.php

find the following code:
ImageJPEG($image2, $file_out, 85)
and set it to
ImageJPEG($image2, $file_out, 100)

Jan
If you find Phoca extensions useful, please support the project
bigwill
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 23:19

Re: Disable large thumb creation

Post by bigwill »

Thank you Jan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable large thumb creation

Post by Jan »

:wink:
If you find Phoca extensions useful, please support the project
Post Reply