We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f411c27 commit 49bb2d3Copy full SHA for 49bb2d3
lib/PHPExif/Adapter/Native.php
@@ -170,8 +170,7 @@ public function getSectionsAsArrays()
170
* Reads & parses the EXIF data from given file
171
*
172
* @param string $file
173
- * @return \PHPExif\Exif Instance of Exif object with data
174
- * @throws \RuntimeException If the EXIF data could not be read
+ * @return \PHPExif\Exif|boolean Instance of Exif object with data
175
*/
176
public function getExifFromFile($file)
177
{
@@ -187,9 +186,7 @@ public function getExifFromFile($file)
187
186
);
188
189
if (false === $data) {
190
- throw new \RuntimeException(
191
- sprintf('Could not read EXIF data from file %1$s', $file)
192
- );
+ return false;
193
}
194
195
$xmpData = $this->getIptcData($file);
0 commit comments