Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix filter parameter in toBuffer method #356

Merged
merged 1 commit into from Dec 6, 2013
Merged

Fix filter parameter in toBuffer method #356

merged 1 commit into from Dec 6, 2013

Conversation

selaux
Copy link
Contributor

@selaux selaux commented Nov 14, 2013

I tried to write a png to disk using a custom compressionLevel and filter method. But it always failed with libpng error: Unknown row filter for method 0. I found this line in the code and it seems to me that the filter is using the wrong index for the parameter (args[1] is compressionLevel). So I fixed it.

@selaux
Copy link
Contributor Author

selaux commented Nov 20, 2013

Any thoughts?

@kkoopa
Copy link
Contributor

kkoopa commented Nov 26, 2013

Yes, you are definitely correct, the rows around check for the correct index, I must have been sloppy writing that, looks like bad copypasta.

kangax added a commit that referenced this pull request Dec 6, 2013
Fix filter parameter in toBuffer method
@kangax kangax merged commit 5cc0a5f into Automattic:master Dec 6, 2013
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.

None yet

3 participants