Unable to process this photo

nwatts

Joined: 2012-06-23
Posts: 8
Posted: Sat, 2012-06-23 15:06

I have just installed Gallery via Fantastico and upgraded to latest version. Install seems ok but when I try and upload photos I get 'Unable to process this photo' message at the end of the upload

php.ini (in root of Gallery 3 folder structure) settings are
upload_max_filesize = 20M
php_value memory_limit = 32M

.htaccess (in root of Gallery 3 folder structure) settings are
php_value upload_max_filesize 20M
php_value memory_limit 32M

Simultaneous users=1
I have write access

The images seem to be uploaded but no thumbnails are created and there is nothing to see on screen apart from the photo name and a broken thumbnail link. When I click on the broken thumbnail link I can see the full size image.

I can upload images by FTP ... but this does not really help

Any suggestions as to how to fix this so that I have a usable gallery

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25965
Posted: Sun, 2012-06-24 05:21

I have yet to see a successful Fantastico or any other one-click installer.
Delete that install and install manually.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nwatts

Joined: 2012-06-23
Posts: 8
Posted: Wed, 2012-06-27 17:14

Thanks, Dave. I have carried out a manual install and increased settings in php.ini and .htaccess

I still get the "Unable to Process Photos" message on images over 1MB (it accepts an 829kb photo but not a 1,050kb). This suggets that there must be another image size setting somewhere.

With FTP, I can see the larger images have been installed. However, no thumbnail is created. The image name appears in the album and there is a text link to the image

Any suggestions?

Niall

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25965
Posted: Wed, 2012-06-27 17:37

The FAQ is for G2 but is till applicable:
FAQ: Why can't I upload big files (over a megabyte or two)?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nwatts

Joined: 2012-06-23
Posts: 8
Posted: Wed, 2012-06-27 20:13

Dave, thanks. I have edited php.ini and .htaccess as above. Still not working. Perhaps I need to reboot Apache. As my server is managed by an ISP, I don't think I can do this

Login or register to post comments
nwatts

Joined: 2012-06-23
Posts: 8
Posted: Thu, 2012-06-28 10:29

Some more thoughts. I have GD installed as graphic library. Should I add ImageMagick as well. If so, which version?
Or is there anything else I need to install as well.

Or anything I should change in the database. I notice I have 'resize_dirty' = 1 for 'failed' uploads and '0' for successful uploads (failure = no thumbnail).

Any problems connected to browsers?

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25965
Posted: Thu, 2012-06-28 13:38
Quote:
Should I add ImageMagick as well. If so, which version?

Yes. GD is a resource hog. Best bet is the most recent version.

If the image toolkit is not successful in generating a thumb or resize there is a dirty flag for the maintenance task to try again.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nwatts

Joined: 2012-06-23
Posts: 8
Posted: Fri, 2012-06-29 13:20

Thanks, Dave. ImageMagick offers these choices. Which do you recommend?

1 MagickWand for PHP a native PHP-extension to the ImageMagick MagickWand API.
2 IMagick is a native PHP extension to create and modify images using the ImageMagick API. Documentation for the extension is available here.
3 phMagick is a wrapper class for ImageMagick, wrapping the most common web image manipulation actions in easy to use functions, but allowing full access to ImageMagick's power by issuing system calls to it's command-line programs.

Mainteannce is not able to create thumbnails either. Gives 'stalled' message.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25965
Posted: Sat, 2012-06-30 00:47

http://www.imagemagick.org/script/index.php

Install the binary.
Why not just ask your host? the vast majority 80+% have it installed for their users in the default or detectable location.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nwatts

Joined: 2012-06-23
Posts: 8
Posted: Wed, 2012-07-04 11:20

Dave. I have manually installed ImageMagick on my server. However, Gallery 3 Graphic settings gives the message "We could not locate ImageMagick on your system." The ImageMagick button seems diabled. There does not seem to be a browse facility or any way of pointing to its location.

Is there a specific place where I should install ImageMagick?

Thanks

Niall

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25965
Posted: Wed, 2012-07-04 13:40

It should be in the path setting of the server.
/usr/bin is where mine is.
Alternatively there is an advanced setting to choose the path and change the toolkit as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nwatts

Joined: 2012-06-23
Posts: 8
Posted: Wed, 2012-07-04 14:52

I don't seem to have access to usr/bin

I tried pointing to current location in advanced settings but this does not work (still can't find it)
I used format " /imagemagick/ImageMagick-6.6.1-10" in my root folder
I suspect system is looking in a different root

Any more suggestions?

Thanks

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25965
Posted: Wed, 2012-07-04 23:49
Quote:
I suspect system is looking in a different root

Enter the path from that root.
Every host and server is setup different. Perhaps your host will install it for you?
Just guessing here as a good host will have this installed already.
/home/username/sitename/imagemagick/ImageMagick-6.6.1-10

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nwatts

Joined: 2012-06-23
Posts: 8
Posted: Fri, 2012-07-06 13:25

My ISP tells that I can create a usr/bin folder in my own root which I have now done. (same level as public_html folder)
I now have a path /usr/bin/ImageMagick-6.6.1-10
Advanced settings still cannot find it.
I tried adding additional // but that makes no difference

To go back to an earlier stage what is the relationship between filesize and memory limit.
E.g. How much memory do I need to process a 2MB photo?

Any mmore ideas. Thanks

Niall

Login or register to post comments