cancel
Showing results for 
Search instead for 
Did you mean: 

Add Exif data to product images

Add Exif data to product images

Hey,

I'm trying to add Exif data (a copyright tag) to an image, apparently Magento deletes all Exif data on upload, so I'm trying to add just this tag afterwards.

I have an extension which should do this, but I don't know how to call this class/extension upon upload.

I guess in this stage not much code is required, but here's my di.xml:

 

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\Framework\Image\Adapter\Gd2" type="WeProvide\ImageExif\Plugin\Gd2" />
</config>

 Thanks in advance!