BPG format for Windows

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
informed
Posts: 1
Joined: 2015-12-29T06:05:16-07:00
Authentication code: 1151

BPG format for Windows

Post by informed »

Hi,

just came across this new format for images - BPG. Is this supported for Windows in Magick?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: BPG format for Windows

Post by dlemstra »

We currently don't support the BPG format.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: BPG format for Windows

Post 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
Post Reply