Page 1 of 1

BPG format for Windows

Posted: 2015-12-29T06:08:05-07:00
by informed

just came across this new format for images - BPG. Is this supported for Windows in Magick?

Re: BPG format for Windows

Posted: 2015-12-29T06:33:11-07:00
by dlemstra
We currently don't support the BPG format.

Re: BPG format for Windows

Posted: 2015-12-29T07:29:02-07:00
by magick
We support BPG under Linux with the bpgdec and bpgenc delegate programs. It would be simple enough to download these programs for Windows and add these entries in delegates.xml:
  • <delegate decode="bpg" command=""bpgdec.exe" -b 16 -o "%o.png" "%i"; mv "%o.png" "%o""/>
    <delegate decode="png" encode="bpg" command=""bpgenc.exe" -b 12 -q %[fx:quality/2] -o "%o" "%i""/>
You could then conveniently convert BPG images like this:
  • convert logo: logo.bpg
    convert logo.bpg logo.png