Skip to content

chunk type is data is different from photoshop saved png #2354

Answered by JimBobSquarePants
srxqds asked this question in Q&A
Discussion options

You must be logged in to vote

The IDAT information depends on several factors.

  1. The Png color type used - Rgb24, Rgba32 etc.
  2. The compression level used. 1-9
  3. Whether the data is interlaced.
  4. What filtering method is used to rearrange the scanlines before compression (Paeth, Average, etc.)
  5. What approach is used to split the data across multiple chunks.
  6. What ZLib implementation is used to compress the data.

You're extremely unlikely to guarantee identical IDAT chunks unless both encoder implementations are using the exact same properties for all those items.

So, the question begs... Why? Why would you be attempting to do something like this?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@srxqds
Comment options

@srxqds
Comment options

@JimBobSquarePants
Comment options

Answer selected by JimBobSquarePants
Comment options

You must be logged in to vote
2 replies
@JimBobSquarePants
Comment options

@JimBobSquarePants
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants