Forgot your password?
typodupeerror

+ - Why there is no lossy image format with alpha?-> 8

Submitted by ciantic
ciantic (626550) writes "Almost every web developer would benefit from image format that has the capabilities of JPEG and Alpha Channel like in PNG. But why there is not any? Google is developing WebP but it seems like it does not include this killer feature, and as it is discussed it gets to stand still when engineer asks something specific. What is the main issue here? Clearly web is missing this kind of format. From my naive stand point of view the alpha channel would be just like RGB channels, with slight exception the extreme values of Alpha should not be compressed. If you need examples why such format is needed, there is not shortage of that in web. Common example for this kind of need is tilted Polaroid picture with transparent background, and gradient fading in photographs."
Link to Original Source
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Why there is no lossy image format with alpha?

Comments Filter:
  • Such a format already exists, it's called PNG. Advances on bandwidth, storage, etc. plus the public insistance on pixel-perfect means that lossy picture compression is no longer needed or wanted.
    • by ciantic (626550)

      Firstly, Google does not think that Lossy compression is not needed, they are developing one themselves.

      You can't seriously think that PNG would be right format e.g. for those two examples I put up there.

      There are many other use cases besides those two, where PNG would be a huge in size.

      • by segin (883667)

        Firstly, Google isn't always right.

        Secondly, I believe that the size issue can be addressed by using better lossless algorithms. PNG uses zlib deflate, which is Huffman coding + Lempel-Ziv 77, also the same algorithm used in gzip and PKZIP. The algorithm is dated, and uses rather small block sizes (32,768 bytes, IIRC). Some gains in PNG can be had by running the PNG through AdvanceCOMP [sourceforge.net], but PNG likely could achieve better compression with better algorithms, such as Lempel-Ziv-Markov chain algorithm (LZMA),

  • grammar: "when engineer asks";

    Maybe "when an engineer asks" or "when engineers ask"?

    • by ciantic (626550)

      Yeah, I have problems with indefinite articles, probably because there is no similar things in Finnish.

      But I don't mind if it were edited, there probably ain't edit button I could use? I often resort to editing my misspellings in internet.

      On the other hand I can see the point of not having it, since it can be used to skew the history, but rightly used edit button can be useful.

  • ..those two cases don't convince me at all: for rotating images there is CSS3, and for the other example I'd rather overlay a vignette (which should compress super well and could be reused for all images), if that couldn't even be done with an inset box-shadow. Why would you want to bake the design of your site into your images?

    Don't get me wrong, I wouldn't mind a lossy image format that has alpha in the least, but not once did I *miss* it so far. Maybe you have some more examples of where this would be
    • by ciantic (626550)

      For example here is a fella in front [niinisto.net], I have now similar case where I should have a fella in front and background should change (and user should be able to upload own background for the season). Sure I can do some server-side trickery and add the fella to the background user supplied, but all the fuss for that.

      In fact, I would probably save every layering image using Alpha channel if it were possible, because it would allow user to change the background of page and other image elements would automatically m

  • We live in a world in which nobody cares about a few hundred extra kilobytes here or there. Single-image files are therefore already considered "good enough" to push any would-be developers into other formats (specifically video, which is also stealing from audio for the same reason). To this end, PNG is the tool to use for alpha channels if you can't do what you want with CSS transparency [impressivewebs.com] (spec [w3.org]).

    Advancements in compression would need more than just a fancier general-purpose compression scheme, it would

If you aren't rich you should always look useful. -- Louis-Ferdinand Celine

Working...