GithubHelp home page GithubHelp logo

Improve WEBP rendering about jpegview HOT 3 CLOSED

sylikc avatar sylikc commented on September 25, 2024 2
Improve WEBP rendering

from jpegview.

Comments (3)

OCD-Man avatar OCD-Man commented on September 25, 2024 2

I'm not sure why nobody is saying it, but clearly (pun intended) it is a lack of JPEGView having transparency support for webp images. A few other image formats have the same issue.

The following issue I posted is for a problem with the TransparencyColor setting in the JPEGView.ini file not working to change the background color of transparent portions of images. It is a problem with a few image formats including webp. PNG and TIFF files seem to be the only 2 transparency capable image formats for which JPEGView supports transparency. Detailed info about the lack of transparency support is in my post.
#13

As for the red outline of the top circle looking extremely degraded, and the grey which shouldn't exist on the outside of the red outline and on the outside of the outline of the square; all those things are coming from the fact that the completely 100% transparent parts around the shapes need to be rendered as completely 100% solid by the webp codec. Since transparency is not being rendered along with the image, some color has to be chosen to replace the transparent parts. Therefore the black you are seeing is not even comming from the Transparencycolor setting in the JPEGView.ini file or any other setting, and the black background cannot have it's color changed.

I imagine it is the codec that is choosing that color (or colors in the case of webp) to replace/render the transparent parts with rather than the programming in JPEGView, which I say because not all formats with this same issue will choose black as the color to replace the transparent parts of the image, and my webp image in the attached zip file in issue 13 replaced the fully transparent part with a weird pattern of colors.

So considering my webp image from issue 13, it is clear to me that for c-sanchez's image, the grey color on the outside of the circle and square outlines is just a different color being chosen to replace/render the pixels of that particular transparent part. And the same goes for the extremely degraded red outline of the upper circle, where the red color is chosen for some random pixels on the outer edge of the red outline. So the red outline is not even degraded, which you can see since the inner edge of the red outline looks perfectly fine.

So all you need to do is program support for transparency, and then every part of the image will render properly.

from jpegview.

sylikc avatar sylikc commented on September 25, 2024

I've verified this bug with JPEGView. I'll see what I can dig up when I have time, but this is probably more advanced than I can handle at this point

from jpegview.

sylikc avatar sylikc commented on September 25, 2024

@c-sanchez thanks for the bug report. This is now closed by @KrokusPokus PR #27 and verified against the test image

from jpegview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.