Search code examples
phpimage-manipulationlossless

Is it possible to perform a lossless rotation on a JPEG Image in PHP?


I need to rotate some existing JPG images. They have already lost some detail, but I now want to rotate them and lose no further detail.

With a little research, it seems the only lossless Image rotation library for PHP is by using the jPegTran library.

Are there any other options when it somes to doing lossless jpg rotation?

Thanks!


Solution

  • Would't it be possible to call an external program say losslessrotator by exec('commandline');

    Another option would be jpegtran by jpegclub