diff options
author | Felix Riemann <[email protected]> | 2017-04-22 14:11:23 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-04-23 12:12:21 +0200 |
commit | 57c530e27bb13687d674fb7abba03d414ab814fb (patch) | |
tree | a63dc28bd58176f5a834f02b6559d5ab6786ebca /src/eom-image.c | |
parent | 21685bf89ab10cc5cd51f9d2963c63d11632a182 (diff) | |
download | eom-57c530e27bb13687d674fb7abba03d414ab814fb.tar.bz2 eom-57c530e27bb13687d674fb7abba03d414ab814fb.tar.xz |
Avoid recompressing JPEGs as PNG when printing
Use cairo's feature to simply attach the source file data to
the printing surface. This reduces the file size of the resulting
PDF file pretty much to the source file size.
https://bugzilla.gnome.org/show_bug.cgi?id=394260
taken from:
https://git.gnome.org/browse/eog/commit/?id=7029dfe
Diffstat (limited to 'src/eom-image.c')
-rw-r--r-- | src/eom-image.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/eom-image.c b/src/eom-image.c index 8fb9311..1627f2a 100644 --- a/src/eom-image.c +++ b/src/eom-image.c @@ -2350,6 +2350,14 @@ eom_image_get_transform (EomImage *img) return img->priv->trans; } +EomTransform* +eom_image_get_autorotate_transform (EomImage *img) +{ + g_return_val_if_fail (EOM_IS_IMAGE (img), NULL); + + return img->priv->trans_autorotate; +} + /** * eom_image_file_changed: * @img: a #EomImage @@ -2373,3 +2381,12 @@ eom_image_is_file_changed (EomImage *img) return img->priv->file_is_changed; } + +gboolean +eom_image_is_jpeg (EomImage *img) +{ + g_return_val_if_fail (EOM_IS_IMAGE (img), FALSE); + + return ((img->priv->file_type != NULL) && (g_ascii_strcasecmp (img->priv->file_type, EOM_FILE_FORMAT_JPEG) == 0)); +} + |