Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 808
Jon Winstanley Avatar asked Jul 27 '10 11:07

Jon Winstanley


1 Answers

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

Another option would be jpegtran by jpegclub

like image 72
schoetbi Avatar answered Oct 05 '22 11:10

schoetbi