aboutsummaryrefslogtreecommitdiffstats
path: root/exiftran.c
diff options
context:
space:
mode:
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);