Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Image Conversion: SVG to PNG

by RonW (Parson)
on Apr 24, 2017 at 21:47 UTC ( [id://1188801]=note: print w/replies, xml ) Need Help??


in reply to Image Conversion: SVG to PNG

Try using the -quality option for convert.

Since the PNG standard uses lossless compression, the -quality option instead controls compression level and the type of filtering, as described in the documentation.

Replies are listed 'Best First'.
Re^2: Image Conversion: SVG to PNG
by kcott (Archbishop) on Apr 25, 2017 at 10:32 UTC

    G'day RonW,

    Thanks for pointing out the -quality option and providing the link.

    I had initially just looked at the manpage from the command line (i.e. man convert). That's incredibly terse. Literally hundreds of options with no more than a handful of words about each. Here's the entry for -quality:

    -quality value JPEG/MIFF/PNG compression level

    On the other hand, the online documentation has an entire screenful of information about -quality. I had a quick glance through, the other options also appear to have a similar plethora of information. That's handy to know: often, the online versions are just a copy of the command line ones.

    — Ken

      With many projects, the "man page" is treated as "quick reference" documentation, so often focus on "reminding" the experienced user what the various options are. Unfortunately, this results in man pages that are minimally helpful to new users (of the tool in question). In this case, it's even more confusing because the -quality option actually affects more than 1 option to the underlying algorithms (which options being dependent on the algorithm in question).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1188801]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found