Exif script
Posted: 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.
I can run other imagemagick code like this one.
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";
}
?>
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);
?>