aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fop-core/src/main/java/org/apache/fop/pdf/PDFICCBasedColorSpace.java2
-rw-r--r--fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icmbin3144 -> 0 bytes
-rw-r--r--fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm.LICENSE.txt14
-rw-r--r--fop-core/src/main/resources/org/apache/fop/pdf/sRGB.iccbin0 -> 6922 bytes
-rw-r--r--fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.COPYING45
-rw-r--r--fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.LICENSE-ZLIB23
-rw-r--r--fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.README12
-rw-r--r--fop-core/src/test/java/org/apache/fop/util/ColorUtilTestCase.java2
-rw-r--r--fop/test/layoutengine/standard-testcases/color_1.xml4
9 files changed, 84 insertions, 18 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/pdf/PDFICCBasedColorSpace.java b/fop-core/src/main/java/org/apache/fop/pdf/PDFICCBasedColorSpace.java
index 9635917ce..704898def 100644
--- a/fop-core/src/main/java/org/apache/fop/pdf/PDFICCBasedColorSpace.java
+++ b/fop-core/src/main/java/org/apache/fop/pdf/PDFICCBasedColorSpace.java
@@ -138,7 +138,7 @@ public class PDFICCBasedColorSpace extends PDFObject implements PDFColorSpace {
public static PDFICCStream setupsRGBColorProfile(PDFDocument pdfDoc) {
ICC_Profile profile;
PDFICCStream sRGBProfile = pdfDoc.getFactory().makePDFICCStream();
- InputStream in = PDFDocument.class.getResourceAsStream("sRGB Color Space Profile.icm");
+ InputStream in = PDFDocument.class.getResourceAsStream("sRGB.icc");
if (in != null) {
try {
profile = ColorProfileUtil.getICC_Profile(in);
diff --git a/fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm
deleted file mode 100644
index 7f9d18d09..000000000
--- a/fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm
+++ /dev/null
Binary files differ
diff --git a/fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm.LICENSE.txt b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm.LICENSE.txt
deleted file mode 100644
index 9b817e339..000000000
--- a/fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm.LICENSE.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Obtained from: http://www.srgb.com/usingsrgb.html
-
-The file "sRGB Color Space Profile.icm" is:
-Copyright (c) 1998 Hewlett-Packard Company
-
-To anyone who acknowledges that the file "sRGB Color Space Profile.icm"
-is provided "AS IS" WITH NO EXPRESS OR IMPLIED WARRANTY:
-permission to use, copy and distribute this file for any purpose is hereby
-granted without fee, provided that the file is not changed including the HP
-copyright notice tag, and that the name of Hewlett-Packard Company not be
-used in advertising or publicity pertaining to distribution of the software
-without specific, written prior permission. Hewlett-Packard Company makes
-no representations about the suitability of this software for any purpose.
-
diff --git a/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc
new file mode 100644
index 000000000..6f3efbf02
--- /dev/null
+++ b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc
Binary files differ
diff --git a/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.COPYING b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.COPYING
new file mode 100644
index 000000000..2c71be612
--- /dev/null
+++ b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.COPYING
@@ -0,0 +1,45 @@
+The profiles in the base directory are provided according to different licenses.
+
+
+Group A
+sRGB, LCMSLAB.ICM, LCMSXYZ.ICM, the compatibleWithAdobeRGB.icc and the
+Gray.icc, CineonLog_M*.icc, CineLogCurve.icc profiles are all zlib licensed.
+Even though it is highly recommended to rename them before editing.
+
+
+Group B
+The eciRGB*.icc profiles come with their license in license.rtf.
+
+
+Group C
+PhotoGamutRGB_avg6c.icc is licensed to be distributed freely. Modifications
+are not allowed.
+
+
+
+Additionally all profiles come with the following disclaimer. The provided
+ICC Profiles in the package are called DATA in the folling statement.
+
+
+ NO WARRANTY
+
+ BECAUSE THE DATA IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE DATA, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE DATA "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE DATA IS WITH YOU. SHOULD THE
+DATA PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE DATA AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE DATA (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE DATA TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
diff --git a/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.LICENSE-ZLIB b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.LICENSE-ZLIB
new file mode 100644
index 000000000..3b357a1d6
--- /dev/null
+++ b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.LICENSE-ZLIB
@@ -0,0 +1,23 @@
+The zlib/libpng License
+
+Copyright (c) 2008 Kai-Uwe Behrmann
+
+This software is provided 'as-is', without any express or implied
+warranty. In no event will the authors be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+
+ 3. This notice may not be removed or altered from any source
+ distribution.
+
diff --git a/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.README b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.README
new file mode 100644
index 000000000..7c29edcda
--- /dev/null
+++ b/fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc.README
@@ -0,0 +1,12 @@
+Included are profiles created by Marti Maria (littleCMS) <http://www.littlecms.com>:
+
+ # CIE*Lab
+ # CIE*XYZ
+ # sRGB
+
+Various contributors:
+
+ # LStar-RGB from ColorSolutions <http://hwww.basICColor.com>
+ # Photogamut-RGB from the Photogamut workgroup <http://www.photogamut.org>
+ # Cineon and Gray from Kai-Uwe Behrmann <http://www.behrmann.name>
+ # compatibleWithAdobeRGB1998 from Graeme Gill <http://www.argyllcms.com>
diff --git a/fop-core/src/test/java/org/apache/fop/util/ColorUtilTestCase.java b/fop-core/src/test/java/org/apache/fop/util/ColorUtilTestCase.java
index de52817b2..095d3a806 100644
--- a/fop-core/src/test/java/org/apache/fop/util/ColorUtilTestCase.java
+++ b/fop-core/src/test/java/org/apache/fop/util/ColorUtilTestCase.java
@@ -129,7 +129,7 @@ public class ColorUtilTestCase {
public void testRGBICC() throws Exception {
FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
// [TBD] FIXME - use getResource() to access profile [GA]
- URI sRGBLoc = new URI("../fop-core/src/main/resources/org/apache/fop/pdf/sRGB%20Color%20Space%20Profile.icm");
+ URI sRGBLoc = new URI("../fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc");
ColorSpace cs = fopFactory.getColorSpaceCache().get(
"sRGBAlt", sRGBLoc.toASCIIString(), RenderingIntent.AUTO);
assertNotNull("Color profile not found", cs);
diff --git a/fop/test/layoutengine/standard-testcases/color_1.xml b/fop/test/layoutengine/standard-testcases/color_1.xml
index 239fb59e3..e10f46d19 100644
--- a/fop/test/layoutengine/standard-testcases/color_1.xml
+++ b/fop/test/layoutengine/standard-testcases/color_1.xml
@@ -30,7 +30,7 @@
</fo:simple-page-master>
</fo:layout-master-set>
<fo:declarations>
- <fo:color-profile src="../../../fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm" color-profile-name="sRGB"/>
+ <fo:color-profile src="../../../fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc" color-profile-name="sRGB"/>
<fo:color-profile src="nonexistent.icc" color-profile-name="unknown"/>
</fo:declarations>
<fo:page-sequence master-reference="normal" white-space-collapse="true">
@@ -54,7 +54,7 @@
<eval expected="#ff0000" xpath="//block[1]//text/@color"/>
<eval expected="#ff8000" xpath="//block[2]//text/@color"/>
<eval expected="#ff8000" xpath="//block[3]//text/@color"/>
- <eval expected="fop-rgb-icc(1.0,0.5,0.0,sRGB,&quot;../../../fop-core/src/main/resources/org/apache/fop/pdf/sRGB Color Space Profile.icm&quot;,1.0,0.5,0.0)" xpath="//block[4]//text/@color"/>
+ <eval expected="fop-rgb-icc(1.0,0.5,0.0,sRGB,&quot;../../../fop-core/src/main/resources/org/apache/fop/pdf/sRGB.icc&quot;,1.0,0.5,0.0)" xpath="//block[4]//text/@color"/>
<eval expected="#00ff00" xpath="//block[5]//text/@color"/>
<eval expected="fop-rgb-icc(0.6,0.6,0.48000002,#CMYK,,0.0,0.0,0.2,0.4)" xpath="//block[6]//text/@color"/>
<eval expected="fop-rgb-icc(0.6,0.6,0.4,#CMYK,,0.0,0.0,0.2,0.4)" xpath="//block[7]//text/@color"/>