Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler breaking store on large image resolution upload

Image Handler breaking store on large image resolution upload

Locked

Views: 3,962

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
8 Oct 2008, 4:05 PM
#1
davemehta avatar

davemehta

Zen Follower

Join Date:
Aug 2005
Posts:
130
Plugin Contributions:
0

Image Handler breaking store on large image resolution upload

I run several stores and it really causes problems (especially now-a-days with higher resolution cameras) that Image Handler "breaks" when you upload an image with too high a resolution. I am sure you guys have run into this.

I did several searches but couldn't find an answer to a work-around (other than resizing manually before uploading) or a newer version of IH that solves this limitiation.

What can be done to fix this issue?

20 Sep 2009, 5:32 PM
#2
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

I am having the same issue. It is not the image file size it's the image actual size. We uploaded a Homer Simpson doll to our star collectibles category and the category went completely blank.
Turn Homer listing off and the category and everything in it is visible again. Turn Homer back on and everything goes blank again.

How can there be nothing? Nothing is something!

20 Sep 2009, 6:04 PM
#3
davemehta avatar

davemehta

Zen Follower

Join Date:
Aug 2005
Posts:
130
Plugin Contributions:
0

Re: Image Handler breaking store on large image resolution upload

I found that there is a max 2MB setting for image filesize uploads under Config > Max Settings... try changing that and the upload should work. Let me know!

20 Sep 2009, 6:36 PM
#4
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

I tried your suggestion with no results.

I believe the problem lies in the image dimensions not the file size. May be there is something wrong with my ih2 installation.

The image I try to upload is 2048px X 3072px 980kb

If I use irfranview and cut the dimensions in half it will work.

But I thought ih2 was supposed to resize images?

Am I missing something here?

thanks!

How can there be nothing? Nothing is something!

20 Sep 2009, 6:43 PM
#5
davemehta avatar

davemehta

Zen Follower

Join Date:
Aug 2005
Posts:
130
Plugin Contributions:
0

Re: Image Handler breaking store on large image resolution upload

I've never been able to get a straight answer on this... and have ran into the same problem with this occuring from time to time with high-resolution uploads. Usually high-resolution images mean greater filesize so that's why I suggested upping that setting.

Please let me know bealey (or anyone) why this would happen. I have to suggest using a third-party program to resize before upload but you're right - that kind of is redundant.

Anyone have a solid answer on why IH2 breaks with larger resolution images?

20 Sep 2009, 6:49 PM
#6
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

If you upload an unreasonably large image you are asking for trouble and it will make it come up blank.

Folks fuss about having to resize things manually, but there is free software that can do it for you.
My favorite is IrfanView (google it).

It will resize images in batches to a reasonable size. And lots of other amazing stuff too. IrfanView is one of those programs you won't believe is free. Much better than Adobe Bridge for most image management tasks.

20 Sep 2009, 6:52 PM
#7
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

And one more...

Modern cameras have setting for image resolution. You don't have to take all your pictures at huge size.

20 Sep 2009, 7:02 PM
#8
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

kiddo,

I appreciate your input but you did not read my post very clearly. I already mentioned irfranview. I am aware of this.

But my 57 year old father whom lives 300 miles from me is the person whom uses the store and believe me he has enough trouble with using the store as it is. ( He is of the old school analog variety )

I was under the impression that IH2 did the work of resizing images using imagemagick. Wasn't that the point of the module?

Am I missing something here? Thanks

How can there be nothing? Nothing is something!

20 Sep 2009, 7:14 PM
#9
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

Yes, I see. Forgive me for not reading whole thread, I only viewed the one under New Posts :)

I've wondered about this limitation myself when folks run into it. My only solution (sofar) is not to over-do the image size by using a lower setting on the camera.

The docs for IH2 suggest your input image size should be at or near the size of your Large-Display-Image. It probably is a server (perhaps upload limit or memory limit) that chokes it, but if you have shared server, you may not be able to change such settings.

It is very nice you work out for your Dad. Perhaps you could walk him through turning the camera down a bit.

Again, sorry for not reading older posts before putting foot to mouth :)

20 Sep 2009, 7:32 PM
#10
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

It appears that I will have to explain this limitation to him. ( wish me luck ) Hopefully someone will find a solution to this.

Seriously though I thought IH2 resized images for you but I guess what it really does is shrink down an image from it's original size for the small and thumbnail images and doesn't really physically change the original image.

How can there be nothing? Nothing is something!

20 Sep 2009, 7:42 PM
#11
davemehta avatar

davemehta

Zen Follower

Join Date:
Aug 2005
Posts:
130
Plugin Contributions:
0

Re: Image Handler breaking store on large image resolution upload

Agreed... to manually resize with infranviw or I like Fotosizer is a better solution because then you can catalog your files before upload and not waste as much time uploading a huge image just to have the server convert it down... but beasley is right and it's the same reason I have asked about this many times. Some people just aren't that savy but can use Zen quite well. To them it's more difficult to resize and then upload those.

Now, I am on the same page as you guys with all this but from a technical standpoint IH2 should be able to handle very large images and resize them easily since it uses the php module imagemagick to do the resizing. Imagemagick is VERY powerful and reizing is just one of it's abilities (see php man page here: http://us3.php.net/manual/en/book.imagick.php). So I am wondering if someone who is familiar wth IH2's coding could tell us what EXACTLY it's limitiations are so we can know and then even maybe build it to be better?

20 Sep 2009, 8:50 PM
#12
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

OK. This is new to me. I have used IH happily on a couple of sites but today I ran into a problem that sounds like yours. Just to clarify - what you are saying on large file sizes image handler fails. Symptoms might be freezing on large images and then not displaying product listing or product info. Does this sound about right?

I was going to give it another go tomorrow but may settle for resizing manually with irfanview if there is an issue with image handler.

Nick
iszent.com

20 Sep 2009, 9:10 PM
#13
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

It's not really an 'issue', more of a limitation.

A site without IH2 is like a day without sunshine :)

20 Sep 2009, 9:15 PM
#14
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

Well,

To clarify my experience was not the size of the data but the size of the image. ( The image dimensions )

How can there be nothing? Nothing is something!

20 Sep 2009, 10:54 PM
#15
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Image Handler breaking store on large image resolution upload

beasleybub:

Well,

To clarify my experience was not the size of the data but the size of the image. ( The image dimensions )

Since you haven't said, I'm guessing you changed the
admin -> configuration -> images

IH large image maximum width
IH large image maximum height

to match the height and width of your image (2048 X 3072)

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

20 Sep 2009, 11:12 PM
#16
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

Since you haven't said, I'm guessing you changed the
admin -> configuration -> images

IH large image maximum width
IH large image maximum height

to match the height and width of your image (2048 X 3072)

Those settings would have absolutely no effect on wether or not IH2 breaks. That setting is just for how big your image would be allowed to become if the customer clicked on "enlarge image".

If your uploaded image was 1500px X 1500px and you had "IH large image maximum width" and "IH large image maximum height" set at 1000px your "enlarge image" would be 1000px X 1000px.

In the configuration under images

IH large image maximum width
Specify a maximum width for your large images. If width and height are empty or set to 0, no resizing of large images is done.

How can there be nothing? Nothing is something!

20 Sep 2009, 11:31 PM
#17
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Re: Image Handler breaking store on large image resolution upload

I cranked down the image dimensions with irfranview bit by bit until everything started working again.

I went from a height and width of 2048 X 3072 down to 1900 X 2850 and volia.

And I also know for sure it's the overall image dimensions causing the conflict and not the image size because the image size went from the origional 980kb to "2.84MB".

Irfranview actually made the image size bigger by making the image dimensions smaller.

How can there be nothing? Nothing is something!