How to check for when EXIF = TIF but file extension = JPG

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?".
Post Reply
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to check for when EXIF = TIF but file extension = JPG

Post by Bonzo »

If you are using php you could try modifying the code below.

Code: Select all

<?php
$sourcefile = 'flowers.jpg';
$answer_exif = system("exec identify -format \"%[EXIF:Make]\" $sourcefile");
$answer_exif = explode( " ", $answer_exif );
print "Camera make = ".$answer_exif[1];
?>
Post Reply