Cannot upload large picture

thany

Joined: 2010-06-22
Posts: 26
Posted: Sun, 2012-05-20 23:09

I'm trying to upload a rather large picture that happens to be a pano. So it's expected to be large. It's 73MB, and larger ones are coming. The largest one I need to upload later on is 137MB measuring almost 200MP, so I'm very curious what kind of bizarre setting I'll need.

In any case, it's already not working. Thankfully, Gallery3 says nothing except "Unable to process this photo", so that's very helpful. I've put up these settings in my htaccess file:

php_value upload_max_filesize 200M
php_value post_max_size 800M
php_value memory_limit 200M

Now first of all, Gallery3 says "131MB max per file", but if I put the upload_max_filesize to 20MB it says 20MB, and if I leave out the memory_limit entirely, it says 200MB again. Straaange.

Anyway, I thought this would be enough. Is there another error that I can't see from here?.. What should I do?

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25939
Posted: Mon, 2012-05-21 00:18

Use the server add method. Upload the image to the server via FTP and then:
http://codex.gallery2.org/Gallery3:Modules:serveradd

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
thany

Joined: 2010-06-22
Posts: 26
Posted: Mon, 2012-05-21 07:42

Even though I *could* do that, I already tried it. All it does is stall... I can see the cpu&mem usage going up during the serveradd process, but after a few second both go down and nothing else happens, which would lead me to believe it has stalled for whatever reason.

Is there perhaps some sort of arbitrary limit to filesize or image dimensions? The file is a 71MB JPEG measuring 27538*6330 in w/h. All of my software views it just fine...

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25939
Posted: Mon, 2012-05-21 17:56

The limit would be imposed by your host or processing time or memory use of the image toolkit you are using if you are using GD then that certainly will be a issue.
post a link to the image and I will try. All I have is 18Meg images and they work.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
thany

Joined: 2010-06-22
Posts: 26
Posted: Mon, 2012-05-21 19:00

I've temporarily put it here:
http://home.thany.nl/browsable/pictures-did-not-work/IMG_3260_IMG_3280.jpg

Don't mind the artefacts, this one is actually still in the making. It's a rough version. But a picture this size and dimension will eventually be uploaded.

Btw, my host is me :)
My host is a Windows 2008 R2 box with pretty much the latest Apache, PHP and Mysql. So I can just about change anything I want. Only thing I cannot change is the hardware, since it's a virtual server hosted at some provider.

I don't actually know which image toolkit I'm using. It has never caused any problems to speak of, and I don't usually change something that works...

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25939
Posted: Mon, 2012-05-21 21:53
Quote:
My host is a Windows 2008 R2

Windows is not officially supported.
You need to see what image toolkit you are using.
Once I get the 70 meg file i'll test it out.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25939
Posted: Mon, 2012-05-21 23:13

70-80 megs is too much for my host(s).
Does your users have OC3 connections? Even with cable modem/DSL users it is over 5 min to download that image.
That image does not even load in my browser.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
thany

Joined: 2010-06-22
Posts: 26
Posted: Tue, 2012-05-22 08:14

Well, no OC3 connection but I don't expect visitors to download the original picture(s); not at first anyway. The resize would be more than adequate for pretty much everyone. Also, since it's a panoramic picture, I was kinda-sorta expecting a well written pano plugin/module/addon to only serve the visible (smaller) chunks of the pano to the browser. Just like google maps.

In a phpinfo-page I can find a table with GD information. I suppose that means it's installed (and in use?).

Now, being a non-expert in PHP, I honestly don't know how to install another image toolkit - GD just came with the package. But I also don't want to put hours of effort into something that's not going to work.. So, will it help at all to install an alternate image toolkit?

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25939
Posted: Tue, 2012-05-22 13:52

Graphics Toolkit:
Admin -> settings -> Graphics.

Quote:
I was kinda-sorta expecting a well written pano plugin/module/addon

not for G3 yet.
There is one for G2 as far as I recall. but for large images like this then your best bet is some other method that slices the images like google maps does.
Im sure there is a mashup that you could find.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
thany

Joined: 2010-06-22
Posts: 26
Posted: Tue, 2012-05-22 14:21

I see. I'll have to look into that then. Thanks for the help :)

As a sidenote, I wish G3 would produce more meaningful error messages when uploading goes wrong. Also that 131MB limit is strange, even tough I've set it to 200MB and phpinfo also says 200MB.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25939
Posted: Tue, 2012-05-22 15:13

The framework we use (Kohana) does not offer better error messages when it just dies.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments