Skip to content

spritecss.png.FormatError: FormatError: PNG file has invalid signature. #18

@ghost

Description

Please change the error message to display the invalid file.

More often than not (as reported in other issues), the following error message is issued:

spritecss.png.FormatError: FormatError: PNG file has invalid signature.

It is not helpful as it is unrelated to the actual error. It seems to indicate a parsing error on an unsupported image format, sometimes. But other issues seem to indicate that it can happen when a parse error occurs on a background: stanza. I've tried numerous combinations of my CSS input file and always got the same error message. I used strace to try to guess where it failed but did not get more information. I tried --verbose which reported to use a number of files but did not report which would be invalid.

I eventually removed the jpg file and it solved the problem.

I hope the short storry of my frustrating experience will inspire someone to produce a patch that displays a clear error message such as "XXX.jpg : unsupported file format" ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions