Forums / General Questions / Max image dimensions

Max image dimensions

Locked
Results 1 to 13 of 13
This thread is locked. New replies are disabled.
12 Mar 2009, 20:09
#1
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Posts:
3,644
Plugin Contributions:
6

Max image dimensions

Does anybody know of anything that would limit the max DIMENSIONS of an image file to be uploaded, either in ZenCart or php?

A client in the printing business is finding that customers trying to upload images greater than 2349pixels wide (regardless of filesize) are not able to complete the upload.

The server guys say there's no restriction that they know of.

Any ideas?


Ryk
12 Mar 2009, 21:25
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Max image dimensions

admin > config > maximum values > Maximum File Upload Size

admin > tools > server info > upload_max_filesize > in the Configuration PHP Core

Opps!!! You are asking dimensions and not file size????
12 Mar 2009, 22:15
#3
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Posts:
3,644
Plugin Contributions:
6

Re: Max image dimensions

Yep - we had the problem with someone else a while ago, and by trial and error (my favoured modus operandi! :D) I learned that up to 2349 px - no problem, but 2350...no upload.

The way the server is set, filesize is a whopping 12mb
12 Mar 2009, 23:58
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Max image dimensions

If a file upload, the server should not be polling for image dimensions...is the file in fact uploaded? And then one with that dimension not capable of being displayed ?

Or can you FTP the same file?
13 Mar 2009, 00:21
#5
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Posts:
3,644
Plugin Contributions:
6

Re: Max image dimensions

Good point - certainly the first time we came across this, the image was being uploaded, but wasn't displaying.

I'll have to check with this client as that info wasn't offered...but if that is the case, do you have an idea of a probable cause?

The site does have Image Handler installed.
13 Mar 2009, 00:41
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Max image dimensions

I am assuming that the file is being uploaded....do not know of limitations with IH2....but who and why would a pic that is over 2000px wide be allowed???/

As in avatars & others there is a specified size limit.
We are referencing upload from the frontend right??
13 Mar 2009, 09:22
#7
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Posts:
3,644
Plugin Contributions:
6

Re: Max image dimensions

I quite agree with you - the business prints customer images onto a variety of media and requires "the largest possible image" (doesn't seem to like my argument that the largest possible image IS what it's limited to! :D), but even though he's in the print industry, I get the feeling that there is the lack of understanding of images on the web.

Although it's obvious to us that if the customer was to halve the dimensions and double the dpi then the end image quality would be just as good, but as we know, the vast majority of people just point their multi mega pixel camera, click and try to upload whatever the result is.
13 Mar 2009, 09:46
#8
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Max image dimensions

If you use IH2, I remember it does have some limit on that too.
13 Mar 2009, 09:48
#9
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Posts:
3,644
Plugin Contributions:
6

Re: Max image dimensions

Yes, but that's not causing the issue because that affects display, not upload.

But thanks
13 Mar 2009, 13:02
#10
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Posts:
2,276
Plugin Contributions:
0

Re: Max image dimensions

there might be upload limitation set in php.ini .. even though it might be larder then your file size , but if this zc hosted on shared server , it might be effecting the overall php upload size limit .

just my guess.
06 Nov 2009, 09:00
#11
samwoods avatar

samwoods

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Max image dimensions

Hi Ryk, we seem to have the same issue. For some reason the file uploads but it chokes the shopping cart page and wont display the item.

If you have managed to fix this, please let me know, otherwise, I will be looking at putting some sort of warning on it like the file size warning so that it doesn't get to the point of choking the shopping cart.

R. Sam
06 Nov 2009, 09:55
#12
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Posts:
3,644
Plugin Contributions:
6

Re: Max image dimensions

Nope - never found a solution, although to be honest, we stopped looking after the client finally accepted our argument!
07 Nov 2009, 11:18
#13
samwoods avatar

samwoods

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Max image dimensions

Thanks Ryk,

I might just have a go at putting an upload warning similar to the file size warning, that if the dimensions are greater than 2349 wide it will fail.

Thanks and regards, Sam