Description of problem: When trying to install Gallery2 on a el5 or fc10 box it says that the jpegtran command does not have the -crop option available, which is true. When I looked for support on this problem it was indicated that Debian, FreeBSD and a few others with the same version of jpegtran: "Independent JPEG Group's JPEGTRAN, version 6b 27-Mar-1998" have this option available. It appears that a patch was issued for jpegtran which can be found here: http://sylvana.net/jpegcrop/jpegtran/ It would be nice if this patch could be applied to the el & fedora libjpeg rpms to enable this support. Thanks!
Same problem here - I need jpegtran to support "-crop" for Gallery2 to work properly, but the Fedora/Redhat version of libjpeg does not have the croppatch. It would be great if someone could patch the fedora version.
Created attachment 330425 [details] patch to libjpeg SPEC file to use the croppatch Not a person to leave things as they are (and I also rather donate then ask for donations), here is the patch I made for the libjpeg spec from fedora 10 (looks to be the same as the current Rawhide) to include the croppatch (also to be attached shortly). In addition to the simple adding of the patch, I've also bumped the release number and added a changelog entry, I hope TGL doesn't mind.
Created attachment 330426 [details] croppatch from http://sylvana.net/jpegcrop/jpegtran/ Here is the croppatch itself - this is not the package from http://sylvana.net/jpegcrop/jpegtran/ directly, which contains copies of the original source files - instead I created a patch from all the source changes. I've tested it on my machines and this looks to be working well - it crops, and gallery2 loves it :-) The patch file I submitted previously assumes this file will be bziped, but I attached here uncompressed so it will be easier to examine the code changes. Thanks in advance to anyone who may wish to integrate the changes into any current or future versions of Fedora.
In addition, for anyone who is interested, there are pre-built binaries of libjpeg with the croppatch for Fedora 8 on http://rpms.geek.co.il/fc8/ , in addition to the source RPM which will probably build just fine on most other OSs.
I have zero interest in carrying a large patch that's not upstream. If you want to do something useful in this area, join the sourceforge libjpeg project and help them get a release out.
Thank you for the comment, and I'll see what I can do in that regard. In the mean time I hope that the supplied patch and availability of packages will help people who want a solution right now in Fedora. Also if you are not interested in having a resolution to this bug in the context of Fedora, then I suggest that you close this ticket (possibly as WONTFIX or something) as there is no reason to string people along. No hard feelings (hey - my personal itch is actually already scratched ;-) ) and good luck.
Well, it's *certainly* unlikely to happen in the context of rhel5, which this bug is filed against; so WONTFIX it is.
I specifically need this in EL5, but I understand the reasons that it wont be propagated there at this time. I'll try to get a bug submitted to the upstream provider referencing this information here. If I can get a change from the the libjpeg upstream by filing a bug with them, I'll reopen this issue. I'll clone this bug in Fedora 10 so it can continue there. I probably should have filed this bug in both places to begin with but my primary concerns were here. Thanks for your help!