diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-15 10:34:31 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-15 10:34:31 +0000 |
commit | a349b7be0b545f1e17dda314d6622d2f60458821 (patch) | |
tree | fb57b8092d8fdbb05a56f854e3cdca34247e531c /test/resources/images | |
parent | d432b9cdfb206b1dbaeb51167c40a141af71c4ae (diff) | |
download | xmlgraphics-fop-a349b7be0b545f1e17dda314d6622d2f60458821.tar.gz xmlgraphics-fop-a349b7be0b545f1e17dda314d6622d2f60458821.zip |
Bugzilla #36082
1. Addresses the URI resolving issue as discussed in this bug by providing a
FOP implementation of the URIResolver interface as well as the capabilities to
set a URIResolver on the FOUserAgent object.
2. Modifies the BMPReader to extract the resolution information.
3. Fixes a possible array bounds exception in BMPImage which can happen for BMP
images with extra bytes at the end.
4. Provides some infrastructure in ImageFactory in preparation of external
configuration of multiple prioritised image providers per mime type.
5. Sets a proper base URL in SVGElement.
6. Provides test cases and test images for the different formats and
resolutions.
Submitted by: Manuel Mall <mm.at.arcus.com.au>
Patch slightly modified:
- EPS sample graphic exchanged with a very simple and more importantly much smaller one generated by Barcode4J.
- Enabled resolution checking for some of the format-specific testcases (especially after working around resolution detection for PNG)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232786 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/resources/images')
-rw-r--r-- | test/resources/images/barcode.eps | 79 | ||||
-rw-r--r-- | test/resources/images/bgimg300dpi.bmp | bin | 0 -> 110648 bytes | |||
-rw-r--r-- | test/resources/images/bgimg300dpi.png | bin | 0 -> 19394 bytes | |||
-rw-r--r-- | test/resources/images/bgimg300dpi.tif | bin | 0 -> 119268 bytes | |||
-rw-r--r-- | test/resources/images/bgimg72dpi.bmp | bin | 0 -> 110648 bytes | |||
-rw-r--r-- | test/resources/images/bgimg72dpi.gif | bin | 0 -> 19699 bytes | |||
-rw-r--r-- | test/resources/images/bgimg72dpi.png | bin | 0 -> 18365 bytes | |||
-rw-r--r-- | test/resources/images/bgimg72dpi.tif | bin | 0 -> 45972 bytes | |||
-rw-r--r-- | test/resources/images/img.svg | 24 |
9 files changed, 103 insertions, 0 deletions
diff --git a/test/resources/images/barcode.eps b/test/resources/images/barcode.eps new file mode 100644 index 000000000..650c0c3fe --- /dev/null +++ b/test/resources/images/barcode.eps @@ -0,0 +1,79 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%BoundingBox: 0 0 136 43 +%%HiResBoundingBox: 0 0 135.6548 42.525 +%%Creator: Barcode4J (http://barcode4j.krysalis.org) +%%CreationDate: 2005-08-15T10:58:35 +%%LanguageLevel: 1 +%%EndComments +%%BeginProlog +%%BeginProcSet: barcode4j-procset 1.0 +/rf { +newpath +4 -2 roll moveto +dup neg 0 exch rlineto +exch 0 rlineto +0 neg exch rlineto +closepath fill +} def +/ct { +moveto dup stringwidth +2 div neg exch 2 div neg exch +rmoveto show +} def +/jt { +4 -1 roll dup stringwidth pop +5 -2 roll 1 index sub +3 -1 roll sub +2 index length +1 sub div +0 4 -1 roll 4 -1 roll 5 -1 roll +moveto ashow +} def +%%EndProcSet: barcode4j-procset 1.0 +%%EndProlog +9.3555 42.525 0.9356 38.525 rf +11.2266 42.525 0.9356 38.525 rf +14.0332 42.525 1.8711 34.525 rf +17.7755 42.525 0.9356 34.525 rf +20.5821 42.525 0.9356 34.525 rf +22.4532 42.525 2.8066 34.525 rf +26.1954 42.525 0.9356 34.525 rf +29.9376 42.525 1.8711 34.525 rf +32.7442 42.525 1.8711 34.525 rf +37.422 42.525 0.9356 34.525 rf +41.1642 42.525 0.9356 34.525 rf +43.9709 42.525 0.9356 34.525 rf +48.6486 42.525 0.9356 34.525 rf +50.5197 42.525 0.9356 34.525 rf +/Helvetica findfont 7.999999999999999 scalefont setfont +(4) 3.2744 0.5644 ct +/Helvetica findfont 7.999999999999999 scalefont setfont +(194586) 13.0977 50.5197 0.5644 jt +52.3908 42.525 0.9356 38.525 rf +54.2619 42.525 0.9356 38.525 rf +56.133 42.525 0.9356 34.525 rf +59.8752 42.525 0.9356 34.525 rf +62.6818 42.525 2.8066 34.525 rf +67.3596 42.525 0.9356 34.525 rf +69.2307 42.525 0.9356 34.525 rf +72.0373 42.525 2.8066 34.525 rf +75.7795 42.525 0.9356 34.525 rf +78.5862 42.525 2.8066 34.525 rf +82.3284 42.525 2.8066 34.525 rf +87.0061 42.525 0.9356 34.525 rf +88.8772 42.525 0.9356 34.525 rf +90.7483 42.525 0.9356 34.525 rf +/Helvetica findfont 7.999999999999999 scalefont setfont +(705506) 57.0685 94.4905 0.5644 jt +95.4261 42.525 0.9356 38.525 rf +97.2972 42.525 0.9356 38.525 rf +107.5882 34.525 0.9356 30.525 rf +109.4593 34.525 1.8711 30.525 rf +114.1371 34.525 1.8711 30.525 rf +116.9437 34.525 0.9356 30.525 rf +118.8148 34.525 0.9356 30.525 rf +120.6859 34.525 0.9356 30.525 rf +124.4281 34.525 1.8711 30.525 rf +/Helvetica findfont 7.999999999999999 scalefont setfont +(04) 116.9437 35.0894 ct +%%EOF diff --git a/test/resources/images/bgimg300dpi.bmp b/test/resources/images/bgimg300dpi.bmp Binary files differnew file mode 100644 index 000000000..afc407eaf --- /dev/null +++ b/test/resources/images/bgimg300dpi.bmp diff --git a/test/resources/images/bgimg300dpi.png b/test/resources/images/bgimg300dpi.png Binary files differnew file mode 100644 index 000000000..5201bc8b0 --- /dev/null +++ b/test/resources/images/bgimg300dpi.png diff --git a/test/resources/images/bgimg300dpi.tif b/test/resources/images/bgimg300dpi.tif Binary files differnew file mode 100644 index 000000000..5c1648ca0 --- /dev/null +++ b/test/resources/images/bgimg300dpi.tif diff --git a/test/resources/images/bgimg72dpi.bmp b/test/resources/images/bgimg72dpi.bmp Binary files differnew file mode 100644 index 000000000..86978ad6b --- /dev/null +++ b/test/resources/images/bgimg72dpi.bmp diff --git a/test/resources/images/bgimg72dpi.gif b/test/resources/images/bgimg72dpi.gif Binary files differnew file mode 100644 index 000000000..5ad119bdc --- /dev/null +++ b/test/resources/images/bgimg72dpi.gif diff --git a/test/resources/images/bgimg72dpi.png b/test/resources/images/bgimg72dpi.png Binary files differnew file mode 100644 index 000000000..163012765 --- /dev/null +++ b/test/resources/images/bgimg72dpi.png diff --git a/test/resources/images/bgimg72dpi.tif b/test/resources/images/bgimg72dpi.tif Binary files differnew file mode 100644 index 000000000..9e677c953 --- /dev/null +++ b/test/resources/images/bgimg72dpi.tif diff --git a/test/resources/images/img.svg b/test/resources/images/img.svg new file mode 100644 index 000000000..96b44005e --- /dev/null +++ b/test/resources/images/img.svg @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id: font-size-absolute.xml 230445 2005-08-05 11:30:05Z cbowditch $ --> +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> + <g style="fill:red; stroke:#000000"> + <rect x="0" y="0" width="15" height="15"/> + <rect x="5" y="5" width="15" height="15"/> + </g> +</svg> |