-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Imagick v6 to v7 upgrade #676
Comments
Please can you provide me with a Short, Self Contained, Correct (Compilable), Example so that I can run it and experiment with the code? tbh, I still don't fully understand all of the changes that were made between ImageMagick 6 and 7, particularly around the change from an 'opacity' model to a 'transparency' model, so I won't be able to just look at what you're doing and say the fix. |
That's small working example. You can use any images as |
Thanks. Using the image of tux as $figureImagePath and using the reb-blue gradient as $fillImagePath, please can you post the example output you want in ImageMagick 6, and tell me which of the output directories I should be looking at the compare the result? |
Okay, so the code below works for the provided images. However it is possible that you actually want it to work with more generic 'images with a plain background' rather than just 'images with already set alpha channels'. If that's the case, please can you provide an updated input image to use. I think what is happening is that there are some subtle assumptions about what to do when you composite images that have different numbers of channels, and some of those assumptions are different in IM6 vs IM7. Which is a bit of a nightmare tbh.
|
I have a class like this which i used to fill specific mask with image:
Result of this code was that i had a mask, which was in general image where
white
part of image was object to fill, and black part of image was part to replace it with opacity. For when we wanted to fill image like this for example with gradient:it was creating mask from image:
e:
and was filling it with fill like this:
and result was like this:
Now code is not working and for example for image which is created from parts and in imagick v6 was looking like this:
Final result looks like this:
what should i do to achieve the previous effect?
The text was updated successfully, but these errors were encountered: