1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 204_jpegtran_man.dpatch by Jorgen Grahn <grahn+debian@snipabacken.dyndns.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: improves readability of jpegtran man page
8
diff -urNad libjpeg6b-6b~/jpegtran.1 libjpeg6b-6b/jpegtran.1
9
--- libjpeg6b-6b~/jpegtran.1 2007-08-16 22:55:43.000000000 +0200
10
+++ libjpeg6b-6b/jpegtran.1 2007-08-16 22:55:50.000000000 +0200
14
Transverse transpose (across UR-to-LL axis).
17
The transpose transformation has no restrictions regarding image dimensions.
18
The other transformations operate rather oddly if the image dimensions are not
19
a multiple of the iMCU size (usually 8 or 16 pixels), because they can only
20
transform complete blocks of DCT coefficient data in the desired way.
24
default behavior when transforming an odd-size image is designed
25
to preserve exact reversibility and mathematical consistency of the
27
of transpose and flip operations; for consistency, their actions on edge
28
pixels are defined to be the same as the end result of the corresponding
29
transpose-and-flip sequence.
32
For practical use, you may prefer to discard any untransformable edge pixels
33
rather than having a strange-looking strip along the right and/or bottom edges
34
of a transformed image. To do this, add the
38
Drop non-transformable edge blocks.
41
Obviously, a transformation with
43
is not reversible, so strictly speaking
50
If you are only interested by perfect transformation, add the
55
Fails with an error if the transformation is not perfect. For example
59
.B (jpegtran \-rot 90 -perfect foo.jpg || djpeg foo.jpg| pnmflip \-r90 | cjpeg)
61
to do a perfect rotation if available or an approximated one if
65
corner up and/or left to make it so, simultaneously increasing the region
66
dimensions to keep the lower right crop corner unchanged. (Thus, the
67
output image covers at least the requested region, but may cover more.)
74
are enhancements from http://sylvana.net/jpegcrop/ that may not be available on
78
The image can be losslessly cropped by giving the switch:
81
Crop to a rectangular subarea of width W, height H starting at point X,Y.
84
Another not-strictly-lossless transformation switch is:
87
Force grayscale output.
90
This option discards the chrominance channels if the input image is YCbCr
91
(ie, a standard color JPEG), resulting in a grayscale JPEG file. The
92
luminance channel is preserved exactly, so this is a better method of reducing
96
Copy all extra markers. This setting preserves miscellaneous markers
97
-found in the source file, such as JFIF thumbnails and Photoshop settings.
98
+found in the source file, such as
100
+JFIF thumbnails and Photoshop settings.
101
In some files these extra markers can be sizable.
104
The default behavior is
105
.BR "\-copy comments" .
106
(Note: in IJG releases v6 and v6a,