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

Workaround for sharpening with buggy PHP versions #440

Closed
wants to merge 2 commits into from
Closed

Workaround for sharpening with buggy PHP versions #440

wants to merge 2 commits into from

Conversation

horst-n
Copy link
Contributor

@horst-n horst-n commented Apr 9, 2014

PHP versions 5.5.9 and 5.5.10 have a broken function imageconvolution in GD-lib

PHP versions 5.5.9 and 5.5.10 have a broken function imageconvolution in GD-lib
I have found this myself while building a unit testcase for images :)
This bug is reproduceable:
If you have a loop with mixed png images (with and without transparency), the value of the first image was stored and returned for all others. This could result in transparent images become black background or in not transparent images get not sharpened! (@martijn: I think it was this one you run into earlier)

When writing this function I want avoid to open the file multiple times and thought to store it in a static variable is a good idea. But also I've thought it is static for the lifetime of one ImageSizer instance, but it seems that it is permanent for all following ImageSizer instances.
(Learned something new today)
@horst-n
Copy link
Contributor Author

horst-n commented Apr 14, 2014

Is obsolete because I have merged this together with the new USM sharpening method in #445

@horst-n horst-n closed this Apr 14, 2014
@horst-n horst-n reopened this Apr 15, 2014
@horst-n
Copy link
Contributor Author

horst-n commented Apr 15, 2014

Oh damn, I have opened it. But that was wrong. Sorry

@horst-n horst-n closed this Apr 15, 2014
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

1 participant