Picture Woes & Gallery2

Twinkie

Administrator
Staff member
Club Member
Well, looks like I may have figured out what is wrong with my Gallery uploads. Would you believe my pictures are TOO big? Anyone else shooting with a 10M/pix camera in RAW mode? I've been using RAW, then converting to jpg with Ufraw, and this has resulted in me not being able to upload my pictures to Gallery at full resolution (3648x2736 or so). I've since used Ufraw to resize them to 1/2 of that and uploads seem to be fine, at least for the first 7 pictures I've tried. I've never been...
Please login to view full content. Log in or register now.
 

O.D.

Well-known member
Club Member
You really do not need pics that big online. 1024 is all you really need. A great tool to have installed is "Image Resizer". It's a powertoy from MS

http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

There's one out there for Vista as well if you search. It's a great tool that attaches to your "right click" of your mouse.

Food for thought.




quote=Twinkie;22230]Well, looks like I may have figured out what is wrong with my Gallery uploads. Would you believe my pictures are TOO big? Anyone else shooting with a 10M/pix camera in RAW mode? I've been using RAW, then converting to jpg with Ufraw, and this has resulted in me not being able to upload my pictures to Gallery at full resolution (3648x2736 or so). I've since used Ufraw to resize them to 1/2 of that and uploads seem to be fine, at least for the first 7 pictures I've tried. I've never been able to get past 2 pictures before. Any Gallery2 geeks out there? Anyone want to take a stab at why I can't upload full res pictures?[/quote]
 

Twinkie

Administrator
Staff member
Club Member
1st problem: Windows 7, not everything Vista works on 7.

2nd problem: RAW mode. Windows will not natively open a RAW file, I have to use GIMP with the Olympus RAW plugin *if* I need to open them at all. Usually I just use Ufraw to convert them to jpg. I keep the RAW images if I am going to print any of them. RAW is so much better for manipulating then jpg. Once you shoot RAW you won't go back, except for headaches like this.
 

bradleyfitz

Well-known member
Club Member
If there is a restriction in file size, you can be sure it's not gallery. This is always a webapp / webserver setting. It is probably a php configuration setting somewhere limiting the size that the webserver is willing to handle.
 

Twinkie

Administrator
Staff member
Club Member
Agreed. Full size works on my personal server. Anyone wanna take a stab at our server?
 

Twinkie

Administrator
Staff member
Club Member
Isn't there a php parameter I can create in my own php file that reads the whole php.ini file?
I seem to recall it being
>php?info or something like that.
 

bradleyfitz

Well-known member
Club Member
There might be a way, not sure. My php is limited.

I did read quickly that you could add the params to the .htaccess file. So we could try that. The two in question from php.ini seem to be:

post_max_size
upload_max_size
 

Twinkie

Administrator
Staff member
Club Member
I doubt it's max upload or post as your pictures are bigger then mine, arn't they? Even with 1/2 sizing my pics I still can't post more then 15 at a time, better then the 2 I was getting.

I was thinking "Max_Execution" time or something like that. If no one else can take this PHP issue on I will try and look at it later tonight. Time to BBQ for me right now!
 
O

OzPlanet

Guest
It is a limitation of using http to upload...

The problem is when you try to up load a file that is too big, the server has no idea as to how big the file is so it starts uploading, uploading, uploading, then when it hits the limit it just stops and does not get the complete file. Which equals failure.

In order to upload a bigger file it needs to be streamed little bits at a time.
 

bradleyfitz

Well-known member
Club Member
It is a limitation of using http to upload...

The problem is when you try to up load a file that is too big, the server has no idea as to how big the file is so it starts uploading, uploading, uploading, then when it hits the limit it just stops and does not get the complete file. Which equals failure.

In order to upload a bigger file it needs to be streamed little bits at a time.

We upload directly to the server via FTP and create galleries that way... It is not an http limitation as the files are all ready on the server.
 
N

NitroTy

Guest
I did a little looking around, and from what I've seen, all original images look ok, but the resized thumbnails and smaller versions are sometimes broken. This seems to be a problem with the "image processing library". The only solution that appears to fit the symptoms is that the php memory limit is too low. It appears to be set to 40 MB for your account, but according to 1&1 FAQs, it's actually set to 20 MB. For one of my images that is broken, I did the calculations and it would require at least 24 MB for the resize operation. The 1&1 FAQ also says you are not allowed to change the php memory limit (assuming you are on a shared host plan). It looks like the best solution is to tell people to upload images no larger than a certain size (2048x2048 is safe).

Also, I would remove that info.php file, or rename it to a non-php file until you need it again, as it could be a security risk.
 

Twinkie

Administrator
Staff member
Club Member
I did a little looking around, and from what I've seen, all original images look ok, but the resized thumbnails and smaller versions are sometimes broken. This seems to be a problem with the "image processing library". The only solution that appears to fit the symptoms is that the php memory limit is too low. It appears to be set to 40 MB for your account, but according to 1&1 FAQs, it's actually set to 20 MB. For one of my images that is broken, I did the calculations and it would require at least 24 MB for the resize operation. The 1&1 FAQ also says you are not allowed to change the php memory limit (assuming you are on a shared host plan). It looks like the best solution is to tell people to upload images no larger than a certain size (2048x2048 is safe).

Also, I would remove that info.php file, or rename it to a non-php file until you need it again, as it could be a security risk.

1and1 needs to change that. I think Ty needs to be our new webmaster.
:beer:
 

Richard

Commoner
Club Member
I did a little looking around, and from what I've seen, all original images look ok, but the resized thumbnails and smaller versions are sometimes broken. This seems to be a problem with the "image processing library". The only solution that appears to fit the symptoms is that the php memory limit is too low. It appears to be set to 40 MB for your account, but according to 1&1 FAQs, it's actually set to 20 MB. For one of my images that is broken, I did the calculations and it would require at least 24 MB for the resize operation. The 1&1 FAQ also says you are not allowed to change the php memory limit (assuming you are on a shared host plan). It looks like the best solution is to tell people to upload images no larger than a certain size (2048x2048 is safe).

Also, I would remove that info.php file, or rename it to a non-php file until you need it again, as it could be a security risk.

I just uploaded some pics from Crag Lake, all were resized to 2000x1333, but still the thumbnails are broken. I forced it to regenerate them but now it's just different ones that are OK and broken. It's also very slow, do I have to re-try at 4:00 AM or something? I'm really tired of this crap :banghead::banghead::banghead::banghead::banghead::banghead::banghead::banghead:
 
N

NitroTy

Guest
Seems like I might be wrong about the issue. I would be tempted to try different software until I found one that worked (assuming software can fix the problem). Maybe this weekend I'll install some software on my account with 1&1 and see what happens, starting with gallery 2.
 
Last edited:
N

NitroTy

Guest
Can anyone tell me what image processing libraries are installed? Eg ImageMagick, NetPBM? I'm going to try to duplicate the setup and see if I can find the problem.

Oh, I also need to know whether your hosting package is a Windows or Linux one. If it's Windows I may not be much help.
 
Last edited:
Top