You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Joao Goncalves (Jira)" <ji...@apache.org> on 2026/03/27 21:58:00 UTC
[jira] [Comment Edited] (FOP-3187) Unexpected size of the SVG image if dimensions are not specified
[ https://issues.apache.org/jira/browse/FOP-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18068428#comment-18068428 ]
Joao Goncalves edited comment on FOP-3187 at 3/27/26 9:57 PM:
--------------------------------------------------------------
-i feel like Batik should be able to use the viewbox if width/height are missing. I'll have a look-
EDIT: My idea above is not possible as the viewBox behaves much differently than I expected.
was (Author: JIRAUSER302961):
i feel like Batik should be able to use the viewbox if width/height are missing. I'll have a look
> Unexpected size of the SVG image if dimensions are not specified
> ----------------------------------------------------------------
>
> Key: FOP-3187
> URL: https://issues.apache.org/jira/browse/FOP-3187
> Project: FOP
> Issue Type: Bug
> Components: image/svg
> Affects Versions: 2.9
> Reporter: Jan Tošovský
> Priority: Major
> Attachments: container_no_scaling.fo, container_no_scaling_fop.pdf, container_no_scaling_xep.pdf, container_scaling.fo, container_scaling_fop.pdf, container_scaling_xep.pdf, image.png, image.svg
>
>
> The container height equals its width if the absolutely positioned block-container is filled with an SVG image. It works fine with raster images.
> See container_scaling.fo with generated PDF outputs in FOP and XEP.
> Comparing FOP and XEP outputs I can also see the difference in the default size if scaling is not specified, see container_no_scaling.fo with PDF outputs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)