diff options
author | infirit <[email protected]> | 2014-07-25 14:30:30 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-25 14:30:30 +0200 |
commit | d153aebdb32dd193beec476e8f1bec919b33f18c (patch) | |
tree | 050e35298da4e822f0e4ba1efc816d1ad0f7a89a | |
parent | 1e96ab6e11d74ad363cbe9a905065924edf56437 (diff) | |
download | eom-d153aebdb32dd193beec476e8f1bec919b33f18c.tar.bz2 eom-d153aebdb32dd193beec476e8f1bec919b33f18c.tar.xz |
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 <[email protected]>
-rw-r--r-- | src/eom-image-jpeg.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |