-
Notifications
You must be signed in to change notification settings - Fork 36
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
relationship between the PHP Imagick class and the magick command #84
Comments
So. Imagick uses the ImageMagick library underneath through the MagickWand API. ImageMagick also has command line tools, which mostly expose the same functionality, however..... ImageMagick has different expectations for users. The command line tools will normally try to guess the right behaviour, whereas with the API it will do exactly as told, which can be annoying. Also, not all of the functionality available in the command line tools of ImageMagick are exposed 'neatly' for re-use through an API.
It's reasonably fine to just run those scripts through exec or one of the other ways of running stuff on the command line.
Usually, but not always. But convex hulls should be possible through the morphology method That code is meant to give a convex hull output similar to the example on ImageMagick. However it doesn't appear to be doing the right thing. I'll need to investigate if I'm just misremembering, or it's borken. |
Oh. The code works.....but the server is timing out, and so keeps displaying the previous image on the page. Which is a different problem, but that is some code that convex hulls stuff. |
ping |
Hello to the round,
can someone explain me in more detail the relationship between the PHP Imagick class and the magick command of the command line tools? (I am using PHP 8.1.6 with ImageMagick 7.1.0.18).
I want to use the commands from the example here:
https://imagemagick.org/script/convex-hull.php
...translate into PHP code. In general there should be an equavalent call to the class Imagick - or not?
$imagick = new \Imagick();
$imagick->convexHull() ??
but this is not the case.
Is there any way to translate the Examples from https://imagemagick.org/script/ into PHP code?
Many greetings.
Theo
PS: see my post here: ImageMagick/ImageMagick#5198
The text was updated successfully, but these errors were encountered: