Hello;
I moved our site to a new server a few days ago. I just realized I am getting an error code 1 upon image processing. It reports:
Error creating thumbnail! Error code: 1
Command:
"/usr/bin/mogrify" -thumbnail 100x100^ -quality 100 -gravity center -extent 100x100 -unsharp 10 '/home/pawdogs/public_html/photopost/data/1/thumbs/IMG_6567.jpg'
I switched to GD2, it uploaded the image, then came back with this error:
"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12000 bytes) in /home/pawdogs/public_html/photopost/image-inc.php on line 152"
Logged in as the user that this site runs under, I took a test photo and ran it through mogrify on the command line to see if it was working:
pawdogs@pawdogs.com [~/www/photopost/data/1]# ls -la |grep testimage.jpg
-rw-r--r-- 1 pawdogs pawdogs
93568 Mar 15 17:08 testimage.jpg
pawdogs@pawdogs.com [~/www/photopost/data/1]# /usr/bin/mogrify -thumbnail 100x100 -quality 100 -gravity center -extent 100x100 -unsharp 10 /home/pawdogs/public_html/photopost/data/1/testimage.jpg
pawdogs@pawdogs.com [~/www/photopost/data/1]# ls -la |grep testimage.jpg
-rw-r--r-- 1 pawdogs pawdogs
8364 Mar 15 17:08 testimage.jpg
pawdogs@pawdogs.com [~/www/photopost/data/1]#
You can see it must have processed the image, as the size was reduced.
The path to mogrify in the config is:
/usr/bin/mogrify
Checked the server:
pawdogs@pawdogs.com [~/www/photopost/data/1]# which mogrify
/usr/bin/mogrify
Mogrify is set to 766.
Check permissions:
pawdogs@pawdogs.com [~/www/photopost]# ls -la |grep data
drwxrwxrwx 9 pawdogs pawdogs 4096 Feb 18 19:39 data/
pawdogs@pawdogs.com [~/www/photopost]# cd data
pawdogs@pawdogs.com [~/www/photopost/data]# ls -la
total 36
drwxrwxrwx 9 pawdogs pawdogs 4096 Feb 18 19:39 ./
drwxr-xr-x 12 pawdogs pawdogs 4096 Mar 15 16:12 ../
drwxrwxrwx 5 pawdogs pawdogs 4096 Mar 15 17:12 1/
drwxrwxrwx 5 pawdogs pawdogs 4096 Feb 18 18:43 2/
drwxrwxrwx 5 pawdogs pawdogs 4096 Mar 5 21:47 500/
drwxr-xr-x 2 pawdogs pawdogs 4096 Feb 18 18:43 avatars/
-rw-r--r-- 1 pawdogs pawdogs 0 Feb 18 18:43 index.html
drwxrwxrwx 2 pawdogs pawdogs 4096 Feb 18 19:39 medium/
drwxrwxrwx 2 pawdogs pawdogs 4096 Feb 18 19:39 mini/
drwxrwxrwx 2 pawdogs pawdogs 4096 Feb 18 19:39 thumbs/
pawdogs@pawdogs.com [~/www/photopost/data]# cd 1
pawdogs@pawdogs.com [~/www/photopost/data/1]# ls -la
total 34460
drwxrwxrwx 5 pawdogs pawdogs 4096 Mar 15 17:12 ./
drwxrwxrwx 9 pawdogs pawdogs 4096 Feb 18 19:39 ../
drwxrwxrwx 2 pawdogs pawdogs 4096 Mar 5 21:52 medium/
drwxrwxrwx 2 pawdogs pawdogs 4096 Feb 23 15:35 mini/
drwxrwxrwx 2 pawdogs pawdogs 4096 Mar 15 17:12 thumbs/
Permissions and ownership / group all look good on every folder I checked.
ImageMagick was installed via this yum package:
ImageMagick.x86_64 : An X application for displaying and manipulating images.
I'm running out of things to try; I read through old forum posts, I'm not seeing any other ideas.
Thanks.