Support ImageMagick PHP extension #253

Open
opened 1 year ago by garett · 0 comments
garett commented 1 year ago

Manual page: https://www.php.net/manual/en/book.imagick.php

ext-imagick are available on most shared hosting (on CPanel, there is a section page for modules). php-imagick on VPS (or Linux in general) is available on package manager or pecl.

I suggest to add lines of code to check if this extension loaded, then use it. If not loaded then do exec(). Something like this:

} else if (extension_loaded('imagick')) {

  // do crazy stuff with Imagick

} else { // ImageMagick

  // convert via exec()
Manual page: https://www.php.net/manual/en/book.imagick.php `ext-imagick` are available on most shared hosting (on CPanel, there is a section page for modules). `php-imagick` on VPS (or Linux in general) is available on package manager or pecl. I suggest to add lines of code to check if this extension loaded, then use it. If not loaded then do `exec()`. Something like this: ```php } else if (extension_loaded('imagick')) { // do crazy stuff with Imagick } else { // ImageMagick // convert via exec() ```
tslocum added the
enhancement
label 10 months ago
tslocum changed title from Using native php-imagick extension instead ImageMagick (`convert` via `exec()`) to Support ImageMagick PHP extension 9 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.