![]() |
|
Automatically resize large images on upload - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Automatically resize large images on upload (/thread-3859.html) |
Automatically resize large images on upload - CaptainObvious - 2008-10-01 I remember a bit of discussion about this previously, but couldn't find it again. I was wondering if anyone could use this bit of code from an OSCommerce contribution to use in ZenPhoto? "This is a small contribution which simply verifies that the width and height of a newly uploaded image is within acceptable boundries. If not, the image is resized to within the boundries, maintaining the aspect ratio using simple calculations, and resaved over the uploaded file. This will not expand images which are below the boundries due to pixelation which will occur upon expansion of small images." Automatically resize large images on upload - acrylian - 2008-10-02 We have already an admin option called "allow upscale" (or the like) that does actually the same. If not checked no smaller image will be resized. |