lossless editing of jpeg pictures
Lossless cropping of jpeg pictures, see http://
Use jpegtran and support different operations: such as rotate, mirror, crop, ... Do it all in one action "Lossless JPEG" and use get_relevant_
Take the copy action as a starting point as this will not work with pil, it will work on the source file or on the last saved file. Both can be referenced with info['path'] Use subprocess.
Blueprint information
Related branches
Sprints
Whiteboard
Juho, 13-6-2009 Would it be alright to use exiftran (http://
exiftran appears to be provided with many Linux distributions so it should be relatively easy to install. I'm not so sure about other platforms.
Stani 13-6-2009
As Phatch is cross platform we need to use tools which are available at least also on Windows. So please check that. In case exiftran is cross platform and jpegtran is linux only, there would be no visible change for the user. On linux we would use exiftran, but on Windows jpegtran. Also check if exiftran/jpegtran are present and raise an error if not. See the init method in core/lib/libtiff.py But for the user the action is called "Lossless JPEG" and the parameters should be the same. For the crop action follow the fields of the other crop action, for the rotation also and so on ... The only difference is that here it should be bundled all in one action and that all parameters show up conditionally.
Stani 17-6-2009
Use Imagemagick action as template. Use jpegtran as fallback for exiftran and for cropping.
Juho 17-6-2009
As the tool options differ a bit I left them as separate options so the user can explicitly use the tool he wants. If needed I can change the behavior.