tweakpng | A low-level PNG image file manipulation utility for Windows | Computer Vision library

 by   jsummers C++ Version: 1.4.6 License: GPL-3.0

kandi X-RAY | tweakpng Summary

kandi X-RAY | tweakpng Summary

tweakpng is a C++ library typically used in Artificial Intelligence, Computer Vision, Qt5 applications. tweakpng has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

A Windows application for viewing and editing PNG metadata. For usage instructions, see tweakpng.txt. For development instructions, see tweakpng-src.txt.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              tweakpng has a low active ecosystem.
              It has 232 star(s) with 19 fork(s). There are 18 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 6 open issues and 5 have been closed. On average issues are closed in 7 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of tweakpng is 1.4.6

            kandi-Quality Quality

              tweakpng has no bugs reported.

            kandi-Security Security

              tweakpng has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              tweakpng is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              tweakpng releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tweakpng
            Get all kandi verified functions for this library.

            tweakpng Key Features

            No Key Features are available at this moment for tweakpng.

            tweakpng Examples and Code Snippets

            No Code Snippets are available at this moment for tweakpng.

            Community Discussions

            Trending Discussions on tweakpng

            QUESTION

            PNG Gamma Correction
            Asked 2018-Jun-25 at 22:45

            I used the DirectXTex library to capture a screenshot of a DX11 game and save it to a file. The problem is that it works great when I save it as jpeg but if I save it as png the image would become super bright and washed out. I checked the image using TweakPNG and found out the gamma was set to 1.0 and that's what's causing the problem. I checked images taken by some other software including the snipping tool and they seem to use 0.45455 as gamma or they leave out the gamma value altogether.

            I don't know if DirectXTex will let me specify a gamma value or not. I'm not even sure if WIC has this functionality as I can't seem to find useful information either on MSDN or other sites.

            ...

            ANSWER

            Answered 2018-Jun-25 at 22:45

            By default DirectXTex will add the sRGB chunk to the PNG file it writes if the format is DXGI_FORMAT_*_SRGB. Furthermore, if the format is not DXGI_FORMAT_*_SRGB I explicitly remove the sRGB chunk and set the gAMA chunk to 1.0 because otherwise WIC always adds the sRGB chunk.

            You can see this behavior in the code in both DirectXTexWIC.cpp and in the DirectX Tool Kit's ScreenGrab.cpp module.

            If you are not doing 'gamma-correct' rendering where your render target is an DXGI_FORMAT_*_SRGB format but have sRGB content in a DXGI_FORMAT_* format, then my recommendation is that you pass an sRGB version of the format to the function.

            In DirectXTex, that's easily done with the MakeSRGB function.

            Gamma correction in the PNG format is a bit of a mess. See this blog post

            Source https://stackoverflow.com/questions/51031085

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install tweakpng

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/jsummers/tweakpng.git

          • CLI

            gh repo clone jsummers/tweakpng

          • sshUrl

            git@github.com:jsummers/tweakpng.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link