Lossless rotation

jason-gallery

Joined: 2002-12-02
Posts: 2
Posted: Mon, 2002-12-02 11:30

I've been using gallery for a bit now, and I'm really pleased with it.
There's one missing feature, though, that I think is kind of important
and also very easy to implement - it would be nice if the gallery used
jpegtran to losslessly rotate/flip jpg images, rather than decoding to
pnm, rotating, and then re-encoding to jpg. Having special logic to
do this in image_rotate is a little bit icky, but not moreso than the logic
in toPnmCmd, etc. Apart from being able to rotate the image as much
as you want without losing any quality, this will also be faster and involve
less forking (on potentially overburdened webservers...).

Anyway, thanks for a good program.

-Jason

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2002-12-05 20:16

You could always modify the rotate code in util.php to do this yourself.
And publish a patch or instructions for others if you feel so inclined.