|Posted: Mon, 2006-09-25 21:41|
Okay, so, I just installed G2, hoping to migrate from G1, and the lack of lossless rotation is kind of a showstopper. I'm not a PHP coder (although I'm fluent in perl and know enough to hack at PHP), but since no one else seems to be doing it, I figured I might as well take a stab.
Without having looked to deeply, I'm under the impression the way to this would be to make a jpegtran module which would implement GalleryToolkit and be able to perform rotate operations in performOperation().
But, uh, how does one tell gallery that if enabled, this toolkit should be used for rotation in preference to any other ones?
And, if it's that easy, how come no one has done it already? I must be missing something.
The other option is simply to hack the ImageMagick module so *it* looks for jpegtran and uses it if available instead of calling "convert -rotate". Clearly that's cheating, though.