robcrozier Posted February 26, 2008 Share Posted February 26, 2008 Hi guys, I wonder if anyone can help or even point me in the right direction with this one? Basically what i'm trying to do is allow a user to upload an image via a form and then have php re-size it (proportionately) and also reduce the size of the image file in the process. Basically, the upload stuff is done and im also watermarking the images on upload, so the file would need to be re-sized etc before the watermarking takes place. For instance, a user uploads a file with dimensions: H600px and W300px. I want to be able to reduce the image so that it has a width of say 100px and the height to be reduced proportionately. It is also important that the overall file size is reduced too in order to save disc space and image load time. If anyone has any suggestions, or knows of any good sites etc that might point me in the right direction this would be great! Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/93182-image-manipulation-on-upload/ Share on other sites More sharing options...
tinker Posted February 26, 2008 Share Posted February 26, 2008 Once you've uploaded the file and transferred it from the temporary place to your storage place, you'd then maniplulate it using (usually) GD or imagemagick. You can do everything you want with those... Quote Link to comment https://forums.phpfreaks.com/topic/93182-image-manipulation-on-upload/#findComment-477406 Share on other sites More sharing options...
robcrozier Posted February 26, 2008 Author Share Posted February 26, 2008 Thanks tinker, i'll look into that and post back if i can't find anything. Quote Link to comment https://forums.phpfreaks.com/topic/93182-image-manipulation-on-upload/#findComment-477440 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.