I am creating a photo stock system and want to extract exif()
data of images that users add. I am not sure how to pass the array of exif()
into database and then display that data in view. For that I have created a row as string(p_exif)
in the migration. What am I doing wrong?
I have tried passing data in array but it seems to not work.
I initially ran this code to save image on my project folder:
Image::make($image)->resize(640,390)->save($location);
Later to extract exif data, I ran this code:
$data = Image::make($image)->resize(640,390)->save($location)->exif();
But it seems I am making a mistake here that I'm not being able to figure out. I am not sure how to pass the array $data
into the database and then to view.
I want to store exif()
data array in the database. The error says something about not passing arrays.