5/30/2023 0 Comments Exif pilot php![]() You can also process the exif data for all images in a folder: $dir = '' //'the/path/'įoreach(glob($dir.'*. There is plenty more values that can be returned so make sure you check it out fully. You can take example of how i retrieve the values by using the array key as seen in the output from the first example above. Focal length was 200 mm and the lens a FE 70-200mm F4 G OSS Focal length was $focal_length_mm and the lens a $lens" ĭSC0001.ARW (4000 x 6000) was shot at 2019:02:20 10:29:10 with a SONY ILCE-6500 at settings of: ISO 640 Shutter speed at 1/2500 and aperture of f/5.6. ' ') Įcho "$file ($height x $width) was shot at $date_time with a $brand $camera at settings of: ISO $iso Shutter speed at $shutter_speed and aperture of $aperture. ![]() $exif = exif_read_data($image_file, 0, true) Here is a code snippet that gets the more basic and fundemental data from exif like: Camera brand, model, date time, image w x h, ISO, aperture, Shutter speed, lens and focal length $image_file = 'DSC0001.ARW' GPS data as an example wont exist for cameras that don’t have this feature. Note that if used within a date format string, an extra '' must. to add a copy number if the file already exists (see the u001b 1m-wu001b 0m option for. the directory, name and extension of the original file, and c may be used. It will return all the possible keys and their values (if the values exist). format codes d, f and e may be used in the new file name to represent. To see all the possible values that are returned run the following on an image that has exif data (taken from documentation example): $exif = exif_read_data('imagename.jpg', 0, true) Getting exif data from images using PHP is done with exif_read_data() a vanilla PHP function. ![]() From location, aperture, IOS, camera, lens, date time, image size + format and so much more the Exif data can tell a lot about the image. Exif stands for Exchangable Image Format, it is the data and information that gets attached to digital images.
0 Comments
Leave a Reply. |