[ 
https://issues.apache.org/jira/browse/BATIK-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18012405#comment-18012405
 ] 

Stanimir Stamenkov commented on BATIK-1383:
-------------------------------------------

{quote}
Batik only supports the image in the data: URL to be either in the RGB color 
model or expressed in the JDK built-in linear gray color space, while the 
embedded JPEG image is in the CMYK space.
{quote}
Do you happen to have a reference to a source or online documentation that 
supports this claim?

As far as I can tell, Batik supports CMYK images as long as it can decode them 
(ImageIO) and then convert them to RGB space (ColorConvertOp).  For example, 
I've tried some other CMYK images (JPEGs) that get converted fine.  See also:

* [JDK-8364583|https://bugs.openjdk.org/browse/JDK-8364583]: ColorConvertOp 
fails for CMYK → RGB conversion

> Error transcoding specific svgs
> -------------------------------
>
>                 Key: BATIK-1383
>                 URL: https://issues.apache.org/jira/browse/BATIK-1383
>             Project: Batik
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.17
>         Environment: Windows 11
>            Reporter: Melanie Traynor
>            Priority: Major
>         Attachments: 2025-07-21_14-25-35.png, a117786.jpg, a117786.svg, 
> a117926.svg
>
>
> We are using batik to transcode 2 svgs using the PNGTranscoder but it 
> ultimately fails with an error thrown from java.awt.ColorSpace  
> 'java.lang.IllegalArgumentException: Component index out of range: 3'
>  
> I have attached the svgs and the stack trace of the source code at the time 
> of exception.  Please let us know if this is a bug or an issue with the data. 
>  The svgs display successfully in other tools.
> I tried with Batik 1.19 too but get the same issue.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org

Reply via email to