-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[WIP][dont merge] Fix build with image magick 7 #12343
Conversation
But this is gonna broke for php5 ? Doesn't it ? Or extension for php5 was changed too ? |
the stackoverflow post is from 2010 so it should work. this method exists in php5 i think. But since the method itself sux and there is a better alternative, why not use the better one instead |
actually ... was wrong, this method doesnt exists in image magick 7 .. otherwise it exists always @sergeyklay sohuld we play it safe and add if / else there http://php.net/manual/en/imagick.getversion.php or just leave it like this ? |
Well. Maybe if else. I guess we can't in minor version deprecate only some related extension version or something ? Anyway i doubt that everyone is going to update imagick. |
well since the guy says that this method is not ok, and since it has been removed, probably this new implementation is better ... dont know really, i am not an image magick expert. I do compile it from souce and upgrade it very often cuz of the CVEs that it has from time to time, and I use it for processing many many things :D But i don't know, as you decide i will update the PR accordingly |
|
ok i will dive deep into it to see whats the best solution there and let you know when its ok |
ok its just typo in php imagick. |
If you are using latest image magic 7 build fails because
setImageOpacity
doesnt existsbuild fails with
https://github.com/mkoppanen/imagick/blob/bd9548c426391878905b2a6bc36accc4c79f7ef7/php_imagick_defs.h#L428
i used this to replace it
http://stackoverflow.com/questions/3538851/php-imagick-setimageopacity-destroys-transparency-and-does-nothing