Re: pngexifinfo: PNG-EXIF info lister (Python code)

John Bowler <[email protected]>
Newsgroups gmane.comp.graphics.png.general
Message-ID <CAP7U39_efAVYfQD_qGbmnrScXbt0ZQ-ZkdG9KzZrBy1ROf-scA@mail.gmail.com>
Just out of interest.  Did you run this code on the sample images I
previously posted, and if so, what was the result?

John Bowler

On Sun, Feb 5, 2017 at 7:32 PM, Cosmin Truta <[email protected]> wrote:
> Hi,
>
> I posted my current *draft* PNG-EXIF info lister at
> https://bitbucket.org/ctruta/pngexifinfo
>
> It can handle all of eXIf/exIf/zxIf, all of compressed or uncompressed
> streams (with automatic detection based on signature), with or without
> uncompressed-length field (also with automatic detection).
>
> The automatic compression detection is quick-and-dirty, but in theory
> works well. The code is otherwise written using clean, idiomatic,
> PEP8-style Python code.
>
> Should any of the current eXIf proposal pass, the code will be updated
> to match the approved proposal only, and the above-mentioned detection
> of compression (or lack of compression) will be removed.
>
> Here are a few metrics:
>
> Total lines of code: 177+248+54 = 479. This includes *everything*.
>
> The number of EXIF tags being recognized: 79. (I just stopped
> randomly, they became too many, and I don't have more time for that
> right now.) Each tag takes 1 LOC.
>
> The TIFF/EXIF parser and lister: 247 LOC. That includes the
> above-mentioned 79 enumerated tags.
>
> The PNG parser, simple, from-scratch: 177 LOC. That includes
> command-line parsing (incl. help screen), CRC checking, automatic
> detection of compression, execution of decompression (if needed), and
> error reporting.
>
> The EXIF extraction code out of PNG (both compressed and uncompressed,
> with and without uncompressed-length field): 21 LOC.
>
> The verification and error reporting of uncompressed-length field: 5
> LOC. (If this field would not have existed, this would have been 0
> LOC.)
>
> The decompression of deflate-encoded EXIF data: 1 LOC.
>
> Sincerely,
> Cosmin
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> png-mng-misc mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/png-mng-misc



-- 
John Bowler <[email protected]>
+1 (541) 450-9885
PO BOX 3151
KERBY OR 97531-3151
USA

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.