aboutsummaryrefslogtreecommitdiffstats
path: root/jpegtools.c
diff options
context:
space:
mode:
Diffstat (limited to 'jpegtools.c')
-rw-r--r--jpegtools.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/jpegtools.c b/jpegtools.c
index f2c1791..692567e 100644
--- a/jpegtools.c
+++ b/jpegtools.c
@@ -430,7 +430,10 @@ static int do_transform(struct jpeg_decompress_struct *src,
memset(&transformoption,0,sizeof(transformoption));
transformoption.transform = transform;
- transformoption.trim = FALSE;
+ if (!(flags & JFLAG_TRANSFORM_TRIM))
+ transformoption.trim = TRUE;
+ else
+ transformoption.trim = FALSE;
transformoption.force_grayscale = FALSE;
/* Any space needed by a transform option must be requested before