How to convert all images to JPG format in PHP?

Posted by SzamDev on Stack Overflow See other posts from Stack Overflow or by SzamDev
Published on 2011-02-20T23:23:13Z Indexed on 2011/02/20 23:25 UTC
Read the original article Hit count: 155

Filed under:
|

I am developing a website in PHP that let the user to upload images and then let him to decide how the image should be using jQuery - PHP integeration to select the area that wanted to be the picture and then click the crop button to crop it and save it.

The problem that I am facing is that not all images type are good to crop and save so I noticed that the easy solution for it to convert the image to JPG and then let the user to crop it because it's the easy way to do it in JPG format.

How I can do it?

Is this the best solution for images types problem?

© Stack Overflow or respective owner

Related posts about php

Related posts about cropping