Imagick.php fiddle

1
2
library_books
PHP Version: 8.2.23
Imagick Version Number: 1809
Imagick Version String: ImageMagick 7.1.1-19 Q16-HDRI x86_64 21601 https://imagemagick.org

Use the Imagick.php fiddle sandbox to test run imagick commands against a starting image.

The sandbox supports most of the imagick commands (excluding some that will attempt out of the expected writes to the server out, and the get* functions.

Simply give the imagick function name, and its arguments.

Where you wish to use an Imagick constant - just give the constant name, or the constant name prefixed by Imagick::

For some functions requiring ImagickPixel type, then just give the value in quotes, e.g. 'setBackgroundColor("pink")'

The sandbox will give assistance on the imagick commands as you type. Click on the function as you type, before any bracket to see any function with the same text in its name. Click on the end of the line as you type to see the php.net help. Click [Escape] to remove the assistance popup. Click on the check_circle_outline icon to complete the command with the selected function.

Use the [Save] button to create a permalink that can be shared to the see the current image and script

Use the [Copy] button to view a basic version of the generated PHP script to run the commands within your own PHP environment.

On the output/results - hover over the images to see a larger version; toggle click on an image to select the image for viewing.

Still stuck? Click here to try this starting point script