Skip to content

Fix different png images getting same hash.#63

Merged
ole1986 merged 1 commit intorospdf:masterfrom
gudorian:fix-png-hash
May 2, 2017
Merged

Fix different png images getting same hash.#63
ole1986 merged 1 commit intorospdf:masterfrom
gudorian:fix-png-hash

Conversation

@gudorian
Copy link
Copy Markdown

@gudorian gudorian commented May 2, 2017

If png images with the same size but different
content using only black on a transparent
background the first included image replaces all
subsequent images even if different since they get
the same hash because idata string is the same.

Creating the hash from the actual content of the
file instead of idata fixes this issue.

If png images with the same size but different
content using only black on a transparent
background the first included image replaces all
subsequent images even if different since they get
the same hash because idata string is the same.

Creating the hash from the actual content of the
file instead of idata fixes this issue.
@ole1986 ole1986 merged commit e0cdc0b into rospdf:master May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants