Announcement

#1 2013-07-02 14:41:46

martinis
Member
2013-07-02
24

Error generating medium-sized portrait orientation thumbnails

I have a new installation of Piwigo (2.5.2) and a new shared hosting provider.  I have an odd problem in that a Segmentation fault occurs when there is a request to generate just medium-sized portrait-orientated photos, from those newly uploaded. This did not occur on the old host.  I suspect some sort of memory problem, but php memory_limit is 128M on this host, but was only 64M on the old host. The new image file fails either from a specific request or when asked for automatically. There is no problem with landscape orientation.

A test after uploading a 3000x4000 photo gives the log file at the foot of this post. There are 5 convert commands which have been executed automatically as I looked at the photo and asked for different sizes, summarised as follows:
convert 1: square 120x120 from original. OK
convert 2: medium 445x594 from original. Error message.
convert 3: number 2 repeated. same result
convert 4: large 567x756 from original. OK
convert 5: medium 445x594 from large. OK

Thus there was no problem generating the large size portrait, and a work-around is to generate the large size from the size icon (when looking at the individual photo) and then immediately to ask for the medium size.  This is not ideal and it would be good to try to track down where the problem lies. If it is a hosting problem, I could then ask the host to change some settings, or seek another provider.

Piwigo reports:


        Operating system: Linux
        PHP: 5.3.26 (Show info) [2013-07-02 12:46:44]
        MySQL: 5.5.31 [2013-07-02 12:46:44]
        Graphics Library: External ImageMagick 6.8.3-6

Any advice appreciated. Thanks.


Log:
2013-07-02T12:31:54+01:00 convert "top-level/upload/2013/07/02/20130702123030-2b030c9a.jpg" -crop 3000x3000+0+500 -filter Lanczos -resize 120x120! -strip -quality 95 -interlace line -sampling-factor 4:2:2 "top-level/_data/i/upload/2013/07/02/20130702123030-2b030c9a-sq.jpg" 2>&1
2013-07-02T12:31:54+01:00 perf 20130702123030-2b030c9a.jpg 3000 4000 12000000 20130702123030-2b030c9a-sq.jpg 120 120 14400 1.5 505 | 22  0 0   481 0
2013-07-02T12:32:02+01:00 convert "top-level/upload/2013/07/02/20130702123030-2b030c9a.jpg" -filter Lanczos -resize 445x594! -quality 95 -interlace line -sampling-factor 4:2:2 "top-level/_data/i/upload/2013/07/02/20130702123030-2b030c9a-me.jpg" 2>&1
2013-07-02T12:32:02+01:00 ERROR /usr/bin/convert: line 23: 25128 Segmentation fault      $NICE $PROGRAM "$@"
2013-07-02T12:32:02+01:00 perf 20130702123030-2b030c9a.jpg 3000 4000 12000000 20130702123030-2b030c9a-me.jpg 445 594 264330 1.5 7911 | 23   0   7887 0
2013-07-02T12:32:08+01:00 convert "top-level/upload/2013/07/02/20130702123030-2b030c9a.jpg" -filter Lanczos -resize 445x594! -quality 95 -interlace line -sampling-factor 4:2:2 "top-level/_data/i/upload/2013/07/02/20130702123030-2b030c9a-me.jpg" 2>&1
2013-07-02T12:32:08+01:00 ERROR /usr/bin/convert: line 23: 25318 Segmentation fault      $NICE $PROGRAM "$@"
2013-07-02T12:32:08+01:00 perf 20130702123030-2b030c9a.jpg 3000 4000 12000000 20130702123030-2b030c9a-me.jpg 445 594 264330 1.7 8526 | 25   0   8499 2
2013-07-02T12:32:13+01:00 convert "top-level/upload/2013/07/02/20130702123030-2b030c9a.jpg" -filter Lanczos -resize 567x756! -quality 95 -interlace line -sampling-factor 4:2:2 "top-level/_data/i/upload/2013/07/02/20130702123030-2b030c9a-la.jpg" 2>&1
2013-07-02T12:32:13+01:00 perf 20130702123030-2b030c9a.jpg 3000 4000 12000000 20130702123030-2b030c9a-la.jpg 567 756 428652 1.6 428 | 22   0   404 0
2013-07-02T12:32:17+01:00 convert "top-level/_data/i/upload/2013/07/02/20130702123030-2b030c9a-la.jpg" -filter Lanczos -resize 445x594! -quality 95 -interlace line -sampling-factor 4:2:2 "top-level/_data/i/upload/2013/07/02/20130702123030-2b030c9a-me.jpg" 2>&1
2013-07-02T12:32:17+01:00 perf 20130702123030-2b030c9a-la.jpg 567 756 428652 20130702123030-2b030c9a-me.jpg 445 594 264330 1.6 241 | 36   0   204 0

Offline

 

#2 2013-07-02 15:52:28

flop25
Piwigo Team
2006-07-06
6900

Re: Error generating medium-sized portrait orientation thumbnails

hi
strange it fails on that size ...
See http://www.mediawiki.org/wiki/Manual:$wgMaxShellMemory
what's their IM version? you might ask for an update


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-07-02 17:56:32

martinis
Member
2013-07-02
24

Re: Error generating medium-sized portrait orientation thumbnails

Yes, it is odd it is only medium and only portrait.  IM is pretty up-to date at 6.8.3-6, so maybe I will have to follow up with increasing the memory limit, as on the MediaWiki page.  Do you know how this might be done - is there any way to do something similar to setting $wgMaxShellMemory in LocalSettings.php, which I assume is just for MediaWiki installations? I can probably get shell access and/or can do a local php.ini on the shared hosting if that helps.

Offline

 

#4 2013-07-02 18:12:54

flop25
Piwigo Team
2006-07-06
6900

Re: Error generating medium-sized portrait orientation thumbnails

I'm so dumb. I thought it was a linux var


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

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact