You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Simon Steiner (Jira)" <ji...@apache.org> on 2024/06/18 07:40:00 UTC

[jira] [Assigned] (BATIK-1285) [PATCH] Batik fails to parse an svg with missing 'offset' attribute

     [ https://issues.apache.org/jira/browse/BATIK-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Steiner reassigned BATIK-1285:
------------------------------------

    Assignee: Simon Steiner

> [PATCH] Batik fails to parse an svg with missing 'offset' attribute
> -------------------------------------------------------------------
>
>                 Key: BATIK-1285
>                 URL: https://issues.apache.org/jira/browse/BATIK-1285
>             Project: Batik
>          Issue Type: Bug
>    Affects Versions: 1.12
>            Reporter: Konstantin Bulenkov
>            Assignee: Simon Steiner
>            Priority: Blocker
>         Attachments: Batik1285Bug.java, exception.txt
>
>
> Many modern design tools like Figma and others do not put {{offset}} attribute when generating a svg image if offset equals {{0}}. See [https://www.w3.org/TR/SVG/pservers.html#GradientStopAttributes]
> Batik fails with exception while trying to read such svgs. Other programs successfully open these files.
> The pull request sets {{offset}} to {{0}} when the attribute is missing.
> Please find a pull request and image example here: [https://github.com/apache/xmlgraphics-batik/pull/20] 
> IntelliJ Platform and all IDEs based on it use Batik (10M+ users). IDE fails when icon with the missing offset attribute is used.
> Could you verify and apply the patch, please.



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

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