次のリンクを経由することができます exifはpngで使用されていません。
https://stackoverflow.com/questions/9542359/does-png-contain-exif-data-like-jpg
が、今、いくつかのPNG画像は、EXIFのtag.uを保存する日が、それは以下の http://php.net/manual/en/function.exif-read-data.php
を助けるかもしれない怒鳴るリンクを試すことができます。この意志は怒鳴る出力を与えるサンプルコード
<?php
//path of the image
$image_name = "1.PNG";
//read all the image attributes
$exif = exif_read_data($image_name, 0, true);
echo $exif===false ? "No header data found.<br />\n" : "Image contains headers\n";
//print the name of the image
echo "Image Name:".$image_name."\n\n";
//iterate trough the image to list all the attributes
foreach ($exif as $key => $section) {
echo "############### Section Name :".$key." #############\n";
foreach ($section as $name => $val) {
echo "$key.$name: $val\n";
}
echo "\n";
}
?>
ある
Image contains headers
Image Name:1.PNG
############### Section Name :FILE #############
FILE.FileName: 1.PNG
FILE.FileDateTime: 1511089868
FILE.FileSize: 6251146
FILE.FileType: 2
FILE.MimeType: image/jpeg
FILE.SectionsFound: ANY_TAG, IFD0, EXIF, MAKERNOTE
############### Section Name :COMPUTED #############
COMPUTED.html: width="5184" height="3456"
COMPUTED.Height: 3456
COMPUTED.Width: 5184
COMPUTED.IsColor: 1
COMPUTED.ByteOrderMotorola: 0
COMPUTED.ApertureFNumber: f/5.0
############### Section Name :IFD0 #############
IFD0.Make: Canon
IFD0.Model: Canon EOS 1300D
IFD0.Orientation: 1
IFD0.XResolution: 72/1
IFD0.YResolution: 72/1
IFD0.ResolutionUnit: 2
IFD0.DateTime: 2017:11:19 16:41:08
IFD0.Artist:
IFD0.YCbCrPositioning: 2
IFD0.Copyright:
############### Section Name :EXIF #############
EXIF.ExposureTime: 1/60
EXIF.FNumber: 5/1
EXIF.ExposureProgram: 2
EXIF.ISOSpeedRatings: 800
EXIF.UndefinedTag:0x8830: 2
EXIF.UndefinedTag:0x8832: 800
EXIF.ExifVersion: 0230
EXIF.DateTimeOriginal: 2017:11:19 16:41:08
EXIF.DateTimeDigitized: 2017:11:19 16:41:08
EXIF.ComponentsConfiguration:
これが役に立ったらいいですか?
exifはpngで使用されません。 「JPEG2000、PNG、GIFでは使用されていません。」 'https://en.wikipedia.org/wiki/Exif –
[' IHDR'チャンク]にはメタデータのための空きがありません(https: //en.wikipedia.org/wiki/Portable_Network_Graphics#Critical_chunks)。 EXIFメタデータは['eXIf'チャンク](https://en.wikipedia.org/wiki/Portable_Network_Graphics#Ancillary_chunks)にとどまるべきです。 – axiac