[Bug 1473523] Re: convert exports SVG ignoring -size parameter
broucaries
1473523 at bugs.launchpad.net
Sun Mar 12 14:25:04 UTC 2017
Could you retest with newer version
** Changed in: imagemagick (Ubuntu)
Status: New => Opinion
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to imagemagick in Ubuntu.
https://bugs.launchpad.net/bugs/1473523
Title:
convert exports SVG ignoring -size parameter
Status in imagemagick package in Ubuntu:
Opinion
Bug description:
Ran into this bug on a new 15.04 install, asking convert to output a PNG of a specific size from an SVG, it would always output in another fixed size.
It seems to be caused because now imagemagick is not built with rsvg support.
john at joran ~ ❯ head -n 2 steamlugcast.s03e11.elegant-diagonal-refunds.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1280" height="720">
john at joran ~ ❯ convert -size 1280x720 -type optimize -strip svg:steamlugcast.s03e11.elegant-diagonal-refunds.svg png:steamlugcast.s03e11.elegant-diagonal-refunds.png
john at joran ~ ❯ file steamlugcast.s03e11.elegant-diagonal-refunds.png
steamlugcast.s03e11.elegant-diagonal-refunds.png: PNG image data, 1024 x 576, 8-bit/color RGBA, non-interlaced
Running -verbose shows that ghostscript is being run with -g1024x576
which is ignoring the passed in setting:
john at joran ~ ❯ convert -verbose -size 1280x720 -type optimize -strip svg:steamlugcast.s03e11.elegant-diagonal-refunds.svg png:steamlugcast.s03e11.elegant-diagonal-refunds.png
"inkscape" "steamlugcast.s03e11.elegant-diagonal-refunds.svg" --export-eps="/tmp/magick-26606wKGZgOsPGYdo" --export-dpi="90,90" --export-background="rgb(100%,100%,100%)" --export-background-opacity="1" > "/tmp/magick-26606LONkAZnbiIOM" 2>&1
"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g1024x576 "-sOutputFile=/tmp/magick-26606t4c4-EQZ9hzg%d" "-f/tmp/magick-26606V1M3cYnMHvNL" "-f/tmp/magick-26606xiQC97aOmL1g"
/tmp/magick-26606t4c4-EQZ9hzg1 PNG 1024x576 1024x576+0+0 8-bit sRGB 202KB 0.020u 0:00.019
/tmp/magick-26606wKGZgOsPGYdo PNG 1024x576 1024x576+0+0 16-bit sRGB 202KB 0.010u 0:00.000
svg:steamlugcast.s03e11.elegant-diagonal-refunds.svg=>/tmp/magick-26606wKGZgOsPGYdo PNG 1024x576 1024x576+0+0 16-bit sRGB 202KB 0.000u 0:00.000
svg:steamlugcast.s03e11.elegant-diagonal-refunds.svg=>steamlugcast.s03e11.elegant-diagonal-refunds.png PNG 1024x576 1024x576+0+0 8-bit sRGB 198KB 0.170u 0:00.169
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1473523/+subscriptions
More information about the foundations-bugs
mailing list