Totally Zenned
- Join Date:
- Jan 2007
- Location:
- Los Angeles, California, United States
- Posts:
- 10,011
- Plugin Contributions:
- 3
Post #101 by divavocals
niccol:
Hmm, something to look at. It doesn't look to hard to implement in general.
Still, like the concept of scaling them on upload better. That way you are not storing huge images on the server that are never used.
But Zen Cart already has settings which supports limiting the size of file uploads in a configuration setting most folks don't usually look at (and therefore simply accept the default values):
Configuration > Maximum Values
**
Maximum File Upload Size** (Default setting: 2048000KB)
niccol:
I could easily code it so that if a large version was requested it served a version that was limited to max dimensions that were specified in admin.
That is probably the way to go, right? Even if it means saving an additional big version of the image on the server.It's similar to how Image Handler works this out. The large image size is a new configuration setting IH3 adds to the image configuration settings.. Especially since the size of the original image upload can be limited in the store configuration settings..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.