Php get image properties "title"

how can i get image file header with php? I am talking about the title next to the author and the comments in the file properties.

early!

+4
source share
2 answers

I assume you can get it using exif_read_data :)

http://php.net/manual/en/function.exif-read-data.php

+9
source

Easy with jQuery.

<script type="text/javascript" src="JQUERY-PATH"></script> <script> $('img').each(function(){ alert( $(this).attr('title') ); }); </script> 

Edit: do you mean the file name or title in the HTML?

-1
source

Source: https://habr.com/ru/post/1343261/


All Articles