Giter Site home page Giter Site logo

png-debugger's Introduction

PNGDebugger

Description

Read PNG headers, Check CRC

Tested on Windows MinGW Compiler

Usage

pngDebugger (--verbose) file1.png file2.png file3.png ...

Sample Run (output) on test/example.png

>> pngdebugger ../test/example.png
        ----
file-path=../test/example.png
file-size=183960 bytes

0x00000000      png-signature=0x89504E470D0A1A0A

0x00000008      chunk-length=0x0000000D (13)
0x0000000C      chunk-type='IHDR'
0x0000001D      crc-code=0x15141527
>> (CRC CHECK)  crc-computed=0x15141527         =>      CRC OK!


0x00000021      chunk-length=0x0002CE5F (183903)
0x00000025      chunk-type='IDAT'
0x0002CE88      crc-code=0xD16771CA
>> (CRC CHECK)  crc-computed=0xD16771CA         =>      CRC OK!


0x0002CE8C      chunk-length=0x00000000 (0)
0x0002CE90      chunk-type='IEND'
0x0002CE94      crc-code=0xAE426082
>> (CRC CHECK)  crc-computed=0xAE426082         =>      CRC OK!

Sample Run (output) with --verbose flag (Detailed IHDR types)

>> pngdebugger --verbose ../test/example.png
        ----
file-path=../test/example.png
file-size=183960 bytes

0x00000000      png-signature=0x89504E470D0A1A0A

0x00000008      chunk-length=0x0000000D (13)
0x0000000C      chunk-type='IHDR'
0x00000010      width=0x00000320        (800)
0x00000014      height=0x00000258       (600)
0x00000018      bit-depth=8
0x00000019      color-type=2    (truecolour)
0x0000001A      compression-method=0    (deflate/inflate)
0x0000001B      filter-method=0         (adaptive)
0x0000001C      interlace-method=0      (standard)
0x0000001D      crc-code=0x15141527
>> (CRC CHECK)  crc-computed=0x15141527         =>      CRC OK!


0x00000021      chunk-length=0x0002CE5F (183903)
0x00000025      chunk-type='IDAT'
0x0002CE88      crc-code=0xD16771CA
>> (CRC CHECK)  crc-computed=0xD16771CA         =>      CRC OK!


0x0002CE8C      chunk-length=0x00000000 (0)
0x0002CE90      chunk-type='IEND'
0x0002CE94      crc-code=0xAE426082
>> (CRC CHECK)  crc-computed=0xAE426082         =>      CRC OK!

png-debugger's People

Contributors

richvong avatar rvong avatar

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.