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).