lightspeedretail / webstore

Web Store eCommerce solution for Lightspeed
http://www.lightspeedpos.com/webstore
Open Software License 3.0
85 stars 63 forks source link

Missing images in version 2.5.1 #555

Closed facultymatt closed 11 years ago

facultymatt commented 11 years ago

Hello, I'm experiencing an issue where images are missing, heres what happens:

Any thoughts as to whats happening here? Whats especially odd is everything seemed to be working fine until recently... not sure what changed. A store reset and product upload maybe? Would a config setting be causing this failure?

To debug, I have also replaced the store with a fresh DL of the 2.5.1 branch - this error stil occurs. Is this a known issue in this version?

Thanks in advance, -Matt

facultymatt commented 11 years ago

Interestingly the small thumbnails on the product page save fine, ie: 1950s-crew-sweatshirt-add-1-135px-165px.jpg... it's the category and detail page images that fail.

facultymatt commented 11 years ago

Also, the original image is 512px x 424px... but the system is trying to upscale to 512 x 445, would this cause failure?

facultymatt commented 11 years ago

I've actually pinpointed this issue. If DETAIL_IMAGE_WIDTH === image width then the resize function fails. For example my original image is 512px wide x 424px tall. If I set DETAIL_IMAGE_WIDTH = 512 in the appearance panel, the image fails. If its 513 or 511 everything works fine. @note that DETAIL_IMAGE_HEIGHT doesn't seem to have the same issue.

facultymatt commented 11 years ago

Closed and opened issue https://github.com/lightspeedretail/webstore/issues/556