I'm a beginner in PHP, I have a little problem writing the PHP page that I want.
What I want to do is to write a PHP page that will accept an image URL as input and a size limit, and then outputs the reduced JPEG image on the page.
For instance I would call it like: mysite.com/newjpeg.php?url=http://www.website.com/test.jpg&size=20000
and then it would output the image in the reduced form.
Could you help me write that code please? Because I don't seem to be able to get JpegReducer to work on URL images.. I feel like the code must be really simple. I'd be very very grateful if you help me.
Thank you so much.