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:51 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 10:01:51 +0100
commit00a801ea2b55d7a57ea0b2e7b2a230b131a4aa5b (patch)
treefae6b71e7b35677f2dd436d44c88db2d3c49e4e5 /src/page.vala
parent6e13fec9c301b741035eafb7702d8ed7c9347584 (diff)
Imported Upstream version 3.15.2upstream/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