From 00a801ea2b55d7a57ea0b2e7b2a230b131a4aa5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 1 Dec 2014 10:01:51 +0100 Subject: Imported Upstream version 3.15.2 --- src/page.vala | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/page.vala') diff --git a/src/page.vala b/src/page.vala index b375723..7a086cd 100644 --- a/src/page.vala +++ b/src/page.vala @@ -662,26 +662,26 @@ public class Page if (strcmp (type, "jpeg") == 0) { - string[] keys = { "quality", "density-unit", "x-density", "y-density", "icc-profile", null }; - string[] values = { "%d".printf (quality), "dots-per-inch", "%d".printf (dpi), "%d".printf (dpi), icc_profile_data, null }; + string[] keys = { "x-dpi", "y-dpi", "quality", "icc-profile", null }; + string[] values = { "%d".printf (dpi), "%d".printf (dpi), "%d".printf (quality), icc_profile_data, null }; if (icc_profile_data == null) - keys[4] = null; + keys[3] = null; writer.save (image, "jpeg", keys, values); } else if (strcmp (type, "png") == 0) { - string[] keys = { "icc-profile", null }; - string[] values = { icc_profile_data, null }; + string[] keys = { "x-dpi", "y-dpi", "icc-profile", null }; + string[] values = { "%d".printf (dpi), "%d".printf (dpi), icc_profile_data, null }; if (icc_profile_data == null) - keys[0] = null; + keys[2] = null; writer.save (image, "png", keys, values); } else if (strcmp (type, "tiff") == 0) { - string[] keys = { "compression", "icc-profile", null }; - string[] values = { "8" /* Deflate compression */, icc_profile_data, null }; + string[] keys = { "x-dpi", "y-dpi", "compression", "icc-profile", null }; + string[] values = { "%d".printf (dpi), "%d".printf (dpi), "8" /* Deflate compression */, icc_profile_data, null }; if (icc_profile_data == null) - keys[1] = null; + keys[3] = null; writer.save (image, "tiff", keys, values); } else -- cgit v1.2.3