lional Posted May 15, 2013 Share Posted May 15, 2013 Hi I have an app where users upload images. I would like to control the maximum width of images. Is there a way that I can change the size of the image with PHP before it is uploaded Thanks in advance Lional Quote Link to comment https://forums.phpfreaks.com/topic/278021-resizing-images/ Share on other sites More sharing options...
Barand Posted May 15, 2013 Share Posted May 15, 2013 Not before it is uploaded, but once uploaded to the server you can use the GD image library functions to create a new resized version and save that instead of the original Quote Link to comment https://forums.phpfreaks.com/topic/278021-resizing-images/#findComment-1430183 Share on other sites More sharing options...
CrossMotion Posted May 15, 2013 Share Posted May 15, 2013 (edited) I dont know if there are javascript libraries that can do this, but you need something running on the client side that can process images to achieve this. I think it can be done with a java applet or flash application. but you should ask this in a flash or java forum to know for sure.. Edited May 15, 2013 by CrossMotion Quote Link to comment https://forums.phpfreaks.com/topic/278021-resizing-images/#findComment-1430189 Share on other sites More sharing options...
Q695 Posted May 15, 2013 Share Posted May 15, 2013 There's a good video on youtube for image resizing/upload help. Quote Link to comment https://forums.phpfreaks.com/topic/278021-resizing-images/#findComment-1430284 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.