Skip to content

get_png_imageinfo.php compare on PNG signature fails #1

@kickofitall

Description

@kickofitall
Thanks for this amazing piece of code!

It helped me a lot with my current project - with a small modification:

$info = unpack('a8sig/Nchunksize/A4chunktype/Nwidth/Nheight/Cbit-depth/'.
        'Ccolor/Ccompression/Cfilter/Cinterface', 
        file_get_contents($file,0,null,0,29))
        ;

With "A8sig" the last "0A" is droped and the PNG signature comparison fails.
With "a8sig" it worked for me.

Just to be mentioned...

(PHP 5.5.9, Win7x64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions