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 4ef4c6c commit 4a7fbd7Copy full SHA for 4a7fbd7
app/code/Magento/MediaGalleryMetadata/Model/Png/Segment/ReadExif.php
@@ -39,6 +39,12 @@ public function __construct(
39
*/
40
public function execute(FileInterface $file): MetadataInterface
41
{
42
+ if (!is_callable('exif_read_data')) {
43
+ throw new LocalizedException(
44
+ __('exif_read_data() must be enabled in php configuration')
45
+ );
46
+ }
47
+
48
foreach ($file->getSegments() as $segment) {
49
if ($this->isExifSegment($segment)) {
50
return $this->getExifData($segment);
0 commit comments