aboutsummaryrefslogtreecommitdiffstats
path: root/exiftran.c
diff options
context:
space:
mode:
authorStéphane Aulery <saulery@free.fr>2014-10-24 01:42:35 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-10-27 13:37:19 +0100
commit19bd17fa608f782c23b1ac50987e741d85668d5b (patch)
tree97e06950ba7c7c736024bf121c87e1bfecdfefe4 /exiftran.c
parent7c306c30d8e620759d236cb3bc13c90a6c57ca23 (diff)
downloadfbida-19bd17fa608f782c23b1ac50987e741d85668d5b.tar.gz
Trimming pictures by default
By default, crop images with unconventional dimensions. Adds an option (-np) to disable this behavior. Signed-off-by: Stéphane Aulery <saulery@free.fr> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'exiftran.c')
-rw-r--r--exiftran.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/exiftran.c b/exiftran.c
index 3669814..410d937 100644
--- a/exiftran.c
+++ b/exiftran.c
@@ -95,6 +95,7 @@ usage(FILE *fp, char *name)
" -nt don't rotate exif thumbnail\n"
" -ni don't rotate jpeg image\n"
" -no don't update the orientation tag\n"
+ " -np don't pare lost edges\n"
"\n"
"other options:\n"
" -h print this help text\n"
@@ -122,6 +123,7 @@ int main(int argc, char *argv[])
unsigned int flags =
JFLAG_TRANSFORM_IMAGE |
JFLAG_TRANSFORM_THUMBNAIL |
+ JFLAG_TRANSFORM_TRIM |
JFLAG_UPDATE_ORIENTATION;
int dump = 0;
int i, c, rc;
@@ -168,6 +170,9 @@ int main(int argc, char *argv[])
case 'o':
flags &= ~JFLAG_UPDATE_ORIENTATION;
break;
+ case 'p':
+ flags &= ~JFLAG_TRANSFORM_TRIM;
+ break;
default:
fprintf(stderr,"unknown option -n%c\n",optarg[0]);
exit(1);