PDA

View Full Version : Time out during Photo Upload


lost
20th of January 2005 (Thu), 21:42
Well it is finally online. I was not able to get imagemagick to work, although it is installed??? I did a locate on convert and used that path in the graphic module setup. (\usr\bin\convert) But no dice.

The main problem I am having now is uploading. I was not able to get the ftp-over-http thing to work but thats no big deal, but when I process more that 4 or 5 photos at a time it times out. I get a blank window with a # in the top left corner. :confused:

As usual any help will be appreciated.

Thanks

lost
20th of January 2005 (Thu), 22:41
I am not sure if this is related to the 2mb max upload or Php timout. I have full control of the server so I can make any mods necessary.

Pekka
21st of January 2005 (Fri), 03:20
Add this to .htaccess in input folder:

php_value max_execution_time 1200

(or whatever value you need).

If that does not work, set it in php.ini. Max upload size affects only the top form (http file send) of upload page.

lost
21st of January 2005 (Fri), 10:16
Would there be any way to bulk process photos? I am making many gallerys with over 100 photos per gallery!! This is taking a really long time. I was just curious if any one had any ideas.

Thanks,

Crazy Cajun

lost
21st of January 2005 (Fri), 10:56
fyi

Ok it seems fobturbo is having the same problem as me. It happens when the total size of photos being added to EE database is larger than 3Mb.

Pekka
21st of January 2005 (Fri), 11:47
fyi

Ok it seems fobturbo is having the same problem as me. It happens when the total size of photos being added to EE database is larger than 3Mb.

There is no size restriction in adding to database. The restriction you speak of is for the form where you upload photos TO the UPLOAD folder. This restriction is in php.ini.

For working with large individual files you'll also need to add memory limit to 512MB or so, Imagemagick needs to unpack JPEG in memory and it takes a lot of RAM. If PHP runs out of RAM it halts.

These are the important PHP settings (I have these values now):

max_execution_time = 1200
memory_limit = 64M
upload_max_filesize = 200M
register_long_arrays = On
register_globals = Off


You can use any ftp program to send lots of files at once to UPLOAD folder (Step 1). That is much more convenient than using the "Step 1" form, and it does not have any limitations.

lost
21st of January 2005 (Fri), 14:59
I will make those changes when I get home. But when I try to import pictures larger that 3Mb I imediately get Page Could not be Displayed.

Please ignore if this will be fixed by the config change.

Pekka
21st of January 2005 (Fri), 15:30
I will make those changes when I get home. But when I try to import pictures larger that 3Mb I imediately get Page Could not be Displayed.

Please ignore if this will be fixed by the config change.

That is most likely too small memory_limit problem. If you open 3MB JPEG (could be 15MB opened to RAM) to a system where max RAM usage is 8MB then you will get a problem.

lost
21st of January 2005 (Fri), 17:04
Again Pekka to the rescue. That fixed it. I set the memory to 128 as my box has 256mb of ram. I will bump it to 256 when I upgrade the ram to 512. Now for my imagemagick problem. I have it on my machine but EE cant seem to find it. Do I need to add something to php.ini to get it to work?

Thanks Pekka

Ragin Cajun

Pekka
21st of January 2005 (Fri), 17:27
Again Pekka to the rescue. That fixed it. I set the memory to 128 as my box has 256mb of ram. I will bump it to 256 when I upgrade the ram to 512. Now for my imagemagick problem. I have it on my machine but EE cant seem to find it. Do I need to add something to php.ini to get it to work?

Thanks Pekka

Ragin Cajun

1. check that safe mode is off (or safe_mode_exec_dir points to IM folder)
2. locate IM convert in shell, set the full path in EE graphics modules page.

Is this Windows or UNIX server?

lost
21st of January 2005 (Fri), 18:38
Ok Safe mode is off

Linux box

For convert I have /usr/bin/convert
For composite I have /usr/bin/composite
I have been able to sucessfully run (from cli) convert to convert a psd to jpg.:lol:

Is there any thing in php.ini that references imagick or imagemagick? I dont see anything in phpinfo.png.

PS "INFO: for Windows use / instead of \ slashes in path!." shouldn't the slashes be the other way around?