summaryrefslogtreecommitdiff
path: root/src/page.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 10:01:58 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 10:01:58 +0100
commit62fba6dacc31de3ef4f295a8f2f98f1560268475 (patch)
treefb861ff6565f7723a2169ba112d465d33e694bd3 /src/page.vala
parentda3b255175ebcd2177edeb0a8f47dc61b2cf9dc9 (diff)
parent00a801ea2b55d7a57ea0b2e7b2a230b131a4aa5b (diff)
Merge tag 'upstream/3.15.2'
Upstream version 3.15.2
Diffstat (limited to 'src/page.vala')
-rw-r--r--src/page.vala18
1 files changed, 9 insertions, 9 deletions
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