Rubblewebs

THESE CODES ARE PROVIDED FOR AN EXAMPLE OF HOW TO USE IMAGEMAGICK WITH PHP. CARE SHOULD BE TAKEN WHEN ACCEPTING USER INPUT.

I TAKE NO RESPONSABILTY FOR ANY PROBLEMS THAT MAY OCCURE WHEN USING ANY OF THIS CODE.

IT IS UP TO YOU TO SECURE THE CODE AND VALIDATE USER INPUT.

How to find detailed information about your setup

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.


<?php
// Build the array of items to be used
exec("convert -list list"$IMarray$code);

// Start the loop to find and display the results
foreach ($IMarray as $value) {
echo 
"<br>system (\"convert -list $value\")";
echo 
"<pre>";
system("convert -list $value");
echo 
"</pre><hr>";
}
?>