Thumbnail creation: how to exclude large images creation?

Phoca Gallery - image gallery extension
strsljen
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 11 May 2009, 06:20

Thumbnail creation: how to exclude large images creation?

Post by strsljen »

Hi!

I am creating new galleries based on directory structure I already have.
I have images in 640x480 which I offer as maximum size images.

For example:
85696 Sep 24 2007 IMG_3410.jpg
86894 Sep 24 2007 IMG_3411.jpg
75106 Sep 24 2007 IMG_3412.jpg
90657 Sep 24 2007 IMG_3413.jpg
110580 Sep 24 2007 IMG_3415.jpg
52555 Sep 24 2007 IMG_3416.jpg
76557 Sep 24 2007 IMG_3417.jpg
70606 Sep 24 2007 IMG_3418.jpg
75825 Sep 24 2007 IMG_3419.jpg
81501 Sep 24 2007 IMG_3420.jpg
109042 Sep 24 2007 IMG_3421.jpg
132919 Sep 24 2007 IMG_3422.jpg
100725 Sep 24 2007 IMG_3423.jpg
106180 Sep 24 2007 IMG_3424.jpg
139930 Sep 24 2007 IMG_3425.jpg
130182 Sep 24 2007 IMG_3426.jpg
135616 Sep 24 2007 IMG_3427.jpg
142702 Sep 24 2007 IMG_3428.jpg
138924 Sep 24 2007 IMG_3429.jpg
93647 Sep 24 2007 IMG_3430.jpg
152258 Sep 24 2007 IMG_3431.jpg
159318 Sep 24 2007 IMG_3432.jpg
2560 May 11 14:02 thumbs

When creating thumbnails, Phoca will recreate for each picture:
1. phoca_thumb_s_IMG_3410.jpg
2. phoca_thumb_m_IMG_3410.jpg
3. phoca_thumb_l_IMG_3410.jpg

The last one (phoca_thumb_l_IMG_3410.jpg) is not needed really, since it is the same size picture as original IMG_3410.jpg. Since my web galleries are ove 2 GB in size, doubling every large image would cause major increase in disk usage.

Is there a way to configure Phoca not to create phoca_thumb_l_IMG_3410.jpg, but to use original IMG_3410.jpg insetad?

P.S. I tired to delete original images (IMG_3410.jpg etc.) but then I can't properly see them in admin interface (I see the name, but not the thumbnail).

Thank you,

regards,

Mario.
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Thumbnail creation: how to exclude large images creation?

Post by caro84g »

Hi,
Is there a way to configure Phoca not to create phoca_thumb_l_IMG_3410.jpg, but to use original IMG_3410.jpg insetad?
I'm sorry, there isn't.
The large image is used everywhere in the code.

I don't know if there is a simple hack to display the thumbs when the originals are deleted. It used to be possible in the 1.x series afaik.

Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
strsljen
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 11 May 2009, 06:20

Re: Thumbnail creation: how to exclude large images creation?

Post by strsljen »

caro84g wrote:I'm sorry, there isn't.
The large image is used everywhere in the code.

I don't know if there is a simple hack to display the thumbs when the originals are deleted. It used to be possible in the 1.x series afaik.

Regards, Carolien
Hi!

That's bad news. :(

I just can't afford to increase disk usage of my website for 2 GB.
Do you have any instructions how this hack was used for 1.x version of Phoca Gallery? I might try to implement something similar to current version 2.2.4.


Regards,

Mario.
strsljen
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 11 May 2009, 06:20

Re: Thumbnail creation: how to exclude large images creation?

Post by strsljen »

Any clue if this can be done or even manually coded in plugin source?
Post Reply