It is currently Thu Sep 03, 2026 9:12 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Will Gimp support BPG format?
PostPosted: Mon Dec 15, 2014 2:36 am  (#1) 
Offline
GimpChat Member

Joined: Jan 20, 2014
Posts: 66
samples http://petapixel.com/2014/12/13/bpg-new-image-format-wants-replace-jpeg-equal-quality-half-size/
download http://bellard.org/bpg/


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Will Gimp support BPG format?
PostPosted: Mon Dec 15, 2014 2:59 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Ask the developers. IMHO, this will happen when there will be a libbpg library for Linux.

One may also wonder if there are any patents involved. JPEG was supposed to be superseded by JPEG2000 (wavelet encoding) but since it was patent-protected it didn't happen.

_________________
Image


Top
 Post subject: Re: Will Gimp support BPG format?
PostPosted: Mon Dec 15, 2014 6:36 am  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2613
ofnuts wrote:
Ask the developers. IMHO, this will happen when there will be a libbpg library for Linux.

One may also wonder if there are any patents involved. JPEG was supposed to be superseded by JPEG2000 (wavelet encoding) but since it was patent-protected it didn't happen.


Similar link was posted on the PCLOS forum on Saturday.
http://www.theregister.co.uk/2014/12/12 ... eg_killer/

Got the code and compiled it for 32 bit.
It is 2 command line applications, and encode is very-very slow and limited to jpeg and png.
5 minutes here to re-encode a 2.77 MB jpeg straight from camera to a 0.86 MB .bpg file. So there is a big file size saving.
Decoding limited to ppm or png but is much quicker, 7 seconds for that image to png

Attachment:
bpg.jpg
bpg.jpg [ 64.42 KiB | Viewed 5975 times ]


Comparing the original jpg and decoded png and diff-ing layers, I could not see any difference, so maybe no additional artifacts.

Will it ever be adopted, probably not. AFAIK the default jvctv decoder is opensource but the better HEVC encoder is patented by the evil MPEGLA.
edit: there is possibility to include a x265 encoder which might be patent-free?
Maybe reach a situation same as mp3 audio, where LAME is perfectly acceptable in Europe but prone to litigation in the US.


Top
 Post subject: Re: Will Gimp support BPG format?
PostPosted: Mon Dec 15, 2014 10:31 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12841
As I read about (and posted elsewhere), this format is suppose to be open-source. We shall see. The results that I saw look impressive to say to least not to mention supports 14-bit images and transparency (alpha). The size of these files, at an equivalent (but from what I could tell superior) quality is only half the size of jpegs. PNG days would be numbered if they would accept this format as standard. It also supports a lossless mode, but not sure how the size of these results compare to PNG. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Will Gimp support BPG format?
PostPosted: Fri Dec 19, 2014 4:50 pm  (#5) 
Offline
New Member

Joined: Dec 19, 2014
Posts: 1
I wrote a gimp plugin for this, using Bellards libbpg. For now it just imports BPG, no export functions in the library.

www,mikropunto,org/?p=71

(replace , with . This is my first post and the forum wont let me insert hyperlinks)


Top
 Post subject: Re: Will Gimp support BPG format?
PostPosted: Sat Dec 20, 2014 10:44 am  (#6) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2613
mikro wrote:
I wrote a gimp plugin for this, using Bellards libbpg. For now it just imports BPG, no export functions in the library.

www.mikropunto.org/?p=71



Thanks, got it, compiled it and it works. Since my previous post, recompiled the encoder with x265 support. That is a little quicker to output a file but still minutes rather than seconds to repack a jpeg or png which is limiting.
Unpacking with either your gimp plugin or the standalone executable is fast enough.


Top
 Post subject: Re: Will Gimp support BPG format?
PostPosted: Sat Dec 27, 2014 1:52 am  (#7) 
Offline
GimpChat Member

Joined: Dec 12, 2014
Posts: 11
I have coined a pure python binding via CTYPES for BPG, which is located on https://github.com/retsyo/libbpg-py . Now it can only decode bpg into ppm. I don't know whether we can write a python-fu script later.


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group