From d153aebdb32dd193beec476e8f1bec919b33f18c Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 25 Jul 2014 14:30:30 +0200 Subject: Support transpose/transverse as lossless JPEG transformations Also implement a warning message if unsupported transformations are used to easier discover such cases in the future. Eog bug http://bugzilla.gnome.org/show_bug.cgi?id=632290 Based on eog commit 5bb5a0bbbd8a47215828f30d97474d63dc979be4 From Felix Riemann --- src/eom-image-jpeg.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/eom-image-jpeg.c b/src/eom-image-jpeg.c index 7ab3c3f..8d9e319 100644 --- a/src/eom-image-jpeg.c +++ b/src/eom-image-jpeg.c @@ -150,7 +150,16 @@ init_transform_info (EomImage *image, jpeg_transform_info *info) case EOM_TRANSFORM_FLIP_VERTICAL: trans_code = JXFORM_FLIP_V; break; + case EOM_TRANSFORM_TRANSPOSE: + trans_code = JXFORM_TRANSPOSE; + break; + case EOM_TRANSFORM_TRANSVERSE: + trans_code = JXFORM_TRANSVERSE; + break; default: + g_warning("EomTransformType not supported!"); + /* Fallthrough intended here. */ + case EOM_TRANSFORM_NONE: trans_code = JXFORM_NONE; break; } -- cgit v1.2.1