Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Vigour
Posts: 6 Joined: 2011-02-27T03:06:01-07:00
Authentication code: 8675308
Contact:
Post
by Vigour » 2011-09-01T23:23:13-07:00
I need som help with this code. It will not work on my mac mini with snow leopard installed.
Code: Select all
<?php
/* Create the object */
$im = new imagick( "/path/to/example.jpg" );
/* Get the EXIF information */
$exifArray = $im->getImageProperties( "exif:*" );
/* Loop trough exif properties */
foreach ( $exifArray as $name => $property )
{
echo "{$name} => {$property}<br />\n";
}
?>
I can run other imagemagick code like this one.
Code: Select all
<?php
// convert file.tif to file.jpg
$input = $file_name_1;
$output = $file_name_2;
$exec = "/usr/local/bin/convert '$input' -resize 421x421 -units PixelsPerInch -density 72 -quality 60 '$output'";
exec($exec, $yaks);
?>
Users browsing this forum: Google [Bot] , Semrush [Bot] and 53 guests