Announcement

#1 2013-04-25 03:45:32

fenster
Member
2013-04-14
14

Thumbnail Filesize Limit

Hey guys, I have a photo stitch that is rather large, and the thumbnail does not show up properly. It shows a triangle with ant exclamation point icon. Following another post I was able to trouble shoot and when I view the thumbnail image, it reports the following error.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 62328 bytes)

IS there a way to raise the allowed size for a thumbnail?

I believe the medium size also doesnt show up properly. I have to click to see the HD version before I can see the picture.

Thanks for the help!


**Edit***

I dont think it is a server load issue, because I can restart the process just for singles and they keep failing out.

Last edited by fenster (2013-04-25 04:00:45)

Offline

 

#2 2013-04-25 11:50:39

flop25
Piwigo Team
2006-07-06
7037

Re: Thumbnail Filesize Limit

Hello
so it's a lack of memeory for PHP (change the memory_limit option)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2013-04-25 13:58:01

Noah
Guest

Re: Thumbnail Filesize Limit

Thanks so much for your response.. I have 2 quick questions.

1) If this is on a shared server, is the webhost the only one that can make chat memory change?

2) What is a suggested memory limit that it should be changed to.

Thank you

 

#4 2013-04-25 14:09:24

flop25
Piwigo Team
2006-07-06
7037

Re: Thumbnail Filesize Limit

You should ask to your hoster so
How much: I don't know, it should depend on the version of IM and of the picture size, but even with those info I couldn't tell


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2013-04-25 17:25:02

noah
Guest

Re: Thumbnail Filesize Limit

So the hoster says the limit is 128Mb. Most of the thumbnails were re-created and some were not. Even if I try to recreate one thumbnail it shows that error. It looks like the icon it is trying to create is only like 13kb. and it says the memory is exhausted...... is it possible that the PHP buffer fills up and then doesnt reset or takes a while to reset?

Basically what I did was adjust the thumbnails to make them crop so I guess piwigo tried to re-create all the thumbnails and thats when I hit the limit.

Any other suggestions?

 

#6 2013-04-25 17:46:50

flop25
Piwigo Team
2006-07-06
7037

Re: Thumbnail Filesize Limit

?
All the resided pictures are made from the original one so if the original is too big for PHP no resized is created


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2013-04-25 18:33:28

noah
Guest

Re: Thumbnail Filesize Limit

Thanks. The largest image file is 10Mb.. These pictures had proper thumbnails until I enabled the crop feature and they were recreated. Then half of them were not able to have their thumbnails generated.

 

#8 2013-04-25 18:51:51

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Thumbnail Filesize Limit

most important of the filesize is the resolution, because softwares work with uncompressed data

Offline

 

#9 2013-04-25 23:36:39

Noah
Guest

Re: Thumbnail Filesize Limit

So the server says now it appears to be a php timeout issue and they are unwilling to adjust the php timeout because it is a shared server. Do I have any other options?

I dont understand why I didnt have any issues when the thumbnails were not set to crop, and then when I enabled crop, thats when I got the errors.


Also, Would I have all these issues if I just hosted on piwigo?

Do I risk a php time out or memory limit?

I have hit a snag every step of the way with my current webhost and it is driving me crazy.

 

#10 2013-04-26 03:00:58

Noah
Guest

Re: Thumbnail Filesize Limit

Also, if I continue to have trouble, especially on large images, can I create my own icons and upload them to the server? If so, where do I put them and how do I name them so they will be used when browsing the gallery?

 

#11 2013-04-26 04:06:03

micah
Member
2013-04-01
11

Re: Thumbnail Filesize Limit

When a photo is added, a new row is created in the 'images' database table. The 'path' column in 'images' contains a value that look like this:

    upload/2013/12/31/20131231162321-9ade1398.jpg

Staying with this example, the derivative, smaller sized versions (thumbnails) would be in the directory path _data/i/upload/2013/12/31/, like this:

_data/i/upload/2013/12/31/20131231162321-9ade1398-th.jpg
_data/i/upload/2013/12/31/20131231162321-9ade1398-me.jpg
_data/i/upload/2013/12/31/20131231162321-9ade1398-sq.jpg


The '20131231162321-9ade1398' part of the example image file name is a basically a date-timestamp plus hyphen plus random string that gets created upon using the add photo function of Piwigo, and isn't predictable before that point.

You may not be able to do much with this, but hope it helps explain things a bit.

Offline

 

#12 2013-04-26 08:35:51

flop25
Piwigo Team
2006-07-06
7037

Re: Thumbnail Filesize Limit

On local just duplicate everything (database and files ) then generate the resize process in the batch manager and finally upload the data/i folder


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#13 2013-04-26 23:45:07

Noah
Guest

Re: Thumbnail Filesize Limit

Thanks for all the help guys. I was able to use the method of naming the file with the correct suffix (th,me) to create the files that do not get created properly.

I dont know why it is not an issue on piwigo's test servers but it is an issue on mine. Oh well, now I know I guess if I want thumbnails of panoramic pics I have to jump through more hoops.

 

#14 2013-05-01 03:19:39

noah
Guest

Re: Thumbnail Filesize Limit

I give up. Now other images, non panoramic error out when creating thumbnails. These files are like 3 and 4 Mb. It seems like for whatever reason, the crop feature for the thumbnails is causing the php memory limit to be exhausted :\

 

#15 2013-05-01 06:52:19

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Thumbnail Filesize Limit

Hi :-)

@noah, have you test your photo on http://piwigo.com ?

You see if problem is your host or piwigo


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact