CMYK or RGB
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 6
- Joined: Sat Oct 04, 2003 2:19 pm
- Contact:
CMYK or RGB
I am trying to produce a PDF with embedded images using RGB rather than CMYK as the file size is smaller.
Does anyone know how to do this?
I did find an element called <fo:declarations>
<fo:declarations>
<fo:color-profile src="url('AdobeRGB1998.icc')" color-profile-name="adobeRGB_98"></fo:color-profile>
</fo:declarations>
But the src and color-profile-name are guesses, and most renderers seem to suggest that RGB should be the default color space.
Anybody that knows how this works and can enlighten me?
Thanks a lot!!
Jaimes
Does anyone know how to do this?
I did find an element called <fo:declarations>
<fo:declarations>
<fo:color-profile src="url('AdobeRGB1998.icc')" color-profile-name="adobeRGB_98"></fo:color-profile>
</fo:declarations>
But the src and color-profile-name are guesses, and most renderers seem to suggest that RGB should be the default color space.
Anybody that knows how this works and can enlighten me?
Thanks a lot!!
Jaimes
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
I think you have to convert your images from CMYK to RGB before including them in the XSL-FO document. The FO processor does not do this conversion. For example use this online service for the image conversion.
Regards,
Sorin
I think you have to convert your images from CMYK to RGB before including them in the XSL-FO document. The FO processor does not do this conversion. For example use this online service for the image conversion.
Regards,
Sorin
-
- Posts: 6
- Joined: Sat Oct 04, 2003 2:19 pm
- Contact:
Thanks sorin, I have tried that, but I think the renderer is producing a CMYK doc as default.
If I include an RGB, or for that matter a grayscale file, the image in the PDF has either a yellow cast (RGB) or comes out entirely black (grayscale)
What I would like to do is either specify what color profile I would like the document itself to use or change the default for the renderer, and then match my graphics to that.
Anyone else had difficulties with images?
I'm using Oxygen 2 and FOP.
If I include an RGB, or for that matter a grayscale file, the image in the PDF has either a yellow cast (RGB) or comes out entirely black (grayscale)
What I would like to do is either specify what color profile I would like the document itself to use or change the default for the renderer, and then match my graphics to that.
Anyone else had difficulties with images?
I'm using Oxygen 2 and FOP.
-
- Posts: 6
- Joined: Sat Oct 04, 2003 2:19 pm
- Contact:
Ok, I've worked it out.
From apache.org/fop - "FOP native support of JPEG does not include all variants, especially those containing unusual color lookup tables and color profiles."
What this means is that Adobe RGB 98, the de facto standard for most photographers etc is not supported by FOP, you must use sRGB which is the consumer standard, with a lower gamut of colours.
Pity.
From apache.org/fop - "FOP native support of JPEG does not include all variants, especially those containing unusual color lookup tables and color profiles."
What this means is that Adobe RGB 98, the de facto standard for most photographers etc is not supported by FOP, you must use sRGB which is the consumer standard, with a lower gamut of colours.
Pity.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service