Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the BPG image format #168

Closed
oparoz opened this issue Jun 23, 2015 · 3 comments
Closed

Support the BPG image format #168

oparoz opened this issue Jun 23, 2015 · 3 comments

Comments

@oparoz
Copy link

oparoz commented Jun 23, 2015

Introduction

BPG (Better Portable Graphics) is a new image format. Its purpose is to replace the JPEG image format when quality or file size is an issue. Its main advantages are:

  • High compression ratio. Files are much smaller than JPEG for similar quality.
  • Supported by most Web browsers with a small Javascript decoder (gzipped size: 56 KB).
  • Based on a subset of the HEVC open video compression standard.
  • Supports the same chroma formats as JPEG (grayscale, YCbCr 4:2:0, 4:2:2, 4:4:4) to reduce the losses during the conversion. An alpha channel is supported. The RGB, YCgCo and CMYK color spaces are also supported.
  • Native support of 8 to 14 bits per channel for a higher dynamic range.
  • Lossless compression is supported.
  • Various metadata (such as EXIF, ICC profile, XMP) can be included.
  • Animation support.

Source: http://bellard.org/bpg/

Online converter: http://webencoder.libbpg.org/

Request

Supporting BPG in GD would be like supporting WebP. It would require a JS library to be able to see pictures in all browsers, but it would be a useful format to store thumbnails in.
Without support in GD, this can't happen as we wouldn't be able to manipulate the files (resize, rotate, composition, etc.).

@pierrejoye
Copy link
Contributor

I looked at it and there are many issues to be solved in the library before it can be done. License is a bit of mess with all the bundled libraries and no distro provides yet.

I may add it as an external module (like pango f.e.)

@vapier
Copy link
Member

vapier commented Jun 2, 2016

when i glanced at it at the time, i can to the same conclusion ... no distros are packaging it which means in practice few (if any) are going to be using it. i wouldn't mind if someone did the work and submitted it, but i don't think it's something we should investigate at this time.

@pierrejoye
Copy link
Contributor

This format did not go anywhere. We don't need to support it as far as I can tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants