diff options
author | Peter Hancock <phancock@apache.org> | 2011-11-01 12:20:21 +0000 |
---|---|---|
committer | Peter Hancock <phancock@apache.org> | 2011-11-01 12:20:21 +0000 |
commit | fd263a114c84c3756ead9c16b8b088531c5cab2c (patch) | |
tree | 4cd6ba7c8fe3a144629477ac911b2651707bdb03 /test/resources | |
parent | 54a4751b616ab4e8957b97af4088bd725367ea6f (diff) | |
download | xmlgraphics-fop-fd263a114c84c3756ead9c16b8b088531c5cab2c.tar.gz xmlgraphics-fop-fd263a114c84c3756ead9c16b8b088531c5cab2c.zip |
Bugzilla#52089: Allow JPEG images to be embedded in an AFP document as
is, without being decoded and encoded. It also allows lossy JPEG compression.
Patch by Jeremias Maerki and Mehdi Houshmand.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1195952 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/resources')
-rw-r--r-- | test/resources/conf/afp/bitmap_encode_quality.xconf | 16 | ||||
-rw-r--r-- | test/resources/conf/afp/can_embed_jpeg.xconf | 16 | ||||
-rw-r--r-- | test/resources/conf/afp/no_image_config.xconf | 13 |
3 files changed, 45 insertions, 0 deletions
diff --git a/test/resources/conf/afp/bitmap_encode_quality.xconf b/test/resources/conf/afp/bitmap_encode_quality.xconf new file mode 100644 index 000000000..540be7ecf --- /dev/null +++ b/test/resources/conf/afp/bitmap_encode_quality.xconf @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fop version="1.0"> + <base>.</base> + <source-resolution>72</source-resolution> + <target-resolution>72</target-resolution> + <image-loading> + </image-loading> + <default-page-settings height="11in" width="8.26in"/> + <renderers> + <renderer mime="application/x-afp"> + <images> + <jpeg allow-embedding="false" bitmap-encoding-quality="0.5"/> + </images> + </renderer> + </renderers> +</fop> diff --git a/test/resources/conf/afp/can_embed_jpeg.xconf b/test/resources/conf/afp/can_embed_jpeg.xconf new file mode 100644 index 000000000..cd87ef07e --- /dev/null +++ b/test/resources/conf/afp/can_embed_jpeg.xconf @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fop version="1.0"> + <base>.</base> + <source-resolution>72</source-resolution> + <target-resolution>72</target-resolution> + <image-loading> + </image-loading> + <default-page-settings height="11in" width="8.26in"/> + <renderers> + <renderer mime="application/x-afp"> + <images> + <jpeg allow-embedding="true"/> + </images> + </renderer> + </renderers> +</fop> diff --git a/test/resources/conf/afp/no_image_config.xconf b/test/resources/conf/afp/no_image_config.xconf new file mode 100644 index 000000000..ff1a089f4 --- /dev/null +++ b/test/resources/conf/afp/no_image_config.xconf @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fop version="1.0"> + <base>.</base> + <source-resolution>72</source-resolution> + <target-resolution>72</target-resolution> + <image-loading> + </image-loading> + <default-page-settings height="11in" width="8.26in"/> + <renderers> + <renderer mime="application/x-afp"> + </renderer> + </renderers> +</fop> |