Using exif with glob
Posted: Fri Feb 20, 2015 8:22 am
Hi
I am using this code to read all images from a specific folder but now I want to correctly orientate them.
I am not sure how to go about implementing exif. ANy suggestions would be appreciated.
<?php
$files = glob("images/Gallery/February/Uploaded/*.*");
for ($i=0; $i<count($files); $i++) {
$image = $files[$i];
echo '<img src="'.$image .'" alt="Random image" style="border:2px solid #666; width:100%; margin: 5px;" />'."<br /><br />";
}
?>
Thanks
I am using this code to read all images from a specific folder but now I want to correctly orientate them.
I am not sure how to go about implementing exif. ANy suggestions would be appreciated.
<?php
$files = glob("images/Gallery/February/Uploaded/*.*");
for ($i=0; $i<count($files); $i++) {
$image = $files[$i];
echo '<img src="'.$image .'" alt="Random image" style="border:2px solid #666; width:100%; margin: 5px;" />'."<br /><br />";
}
?>
Thanks