Snippets - With php

Snippets index page

NOTE: Most of the IM snippets have been tested on IM version 6.3.5 There may be some differences if you are using the code on other versions.

Setup Information - Anthony 15/6/2008

List all the different options and setup details for your ImageMagick installation, the options are read into an array and the code loops through each one.

  1. <?php
  2. // Build the array of items to be used
  3. exec("convert convert -list list"$IMarray$code);
  4. // Start the loop to find and display the results
  5. foreach ($IMarray as $value) {
  6. echo "<br>system (\"convert -list $value\")";
  7. echo "<pre>";
  8. system("convert -list $value");
  9. echo "</pre><hr>";
  10. }
  11. ?>

For more examples and information check out the main Imagemagick section.

Batch file View

Check size before resizing View

Dividing an image View

Fonts Installed view View

Get image data into a variable 1 View

Get image data into a variable 2 View

Gravity option View

New image size in variable View

Row of images View

Setup Information View

Use an array View

Warhol effect View