brfrankl
07-25-2007, 12:37 PM
Ok, Everything I find in the mods forum is just for displaying large images smaller. What I am looking for is a way to have users be able to upload images that are larger in size, but the backend resizes them (prefer proportionately) to below the max restraints in the admincp.
So for example, lets say I have it set for max 640x480 2MB and a user is trying to upload a 1024x768 3M file, I want it to resize it to 640x480 and save it. Since I have never seen an image at 640x480 that was larger than ~3-4M (or even that big) I am not too concerned about storage size, just visual size.
So, anyone have a mod or how to do this with php? I am thinking I need to use gdlib or imagemagick, but no idea how to code that...
anyone?
So for example, lets say I have it set for max 640x480 2MB and a user is trying to upload a 1024x768 3M file, I want it to resize it to 640x480 and save it. Since I have never seen an image at 640x480 that was larger than ~3-4M (or even that big) I am not too concerned about storage size, just visual size.
So, anyone have a mod or how to do this with php? I am thinking I need to use gdlib or imagemagick, but no idea how to code that...
anyone?