im currently trying to edit exif and iptc data with Image Intervention and Laravel. Up to this point it's working ok I guess, but when I try to use the exif-method, It returns an array instead of a string. OK I thought and tried to parse it into a string. I tried serialize()
, but It returned a super ugly version of the array.
I stumbled upon the implode()
function, which is what I need I think, but it somehow always returns the Array to String conversion
Error even though I (think I) used it correctly..
Here's the code I used to parse it so far:
$exif = Image::make($path)->exif();
$exif = serialize($exif); //Super ugly version of the given array
And this:
$exif = Image::make($path)->exif();
$exif = implode(', ', $exif); //Returns "Array to string conversion" Error
Anyone got any Idea of how to fix this?
Thank you :)