public function addImageMetadata(array $data, array $metadata)
    {
        $data['metadata'] = [];

        foreach ($metadata as $meta_name => $meta_value) {
            $data['metadata'][$meta_name] = $meta_value;
        }

        return $data;
    }
public function addImageMetadata(array $data, array $metadata)
    {
        $data['metadata'] = [];

        foreach ($metadata as $meta_name => $meta_value) {
            $data['metadata'][$meta_name] = $meta_value;
        }

        return $data;
    }
public function addImageMetadata ( array $ data , array $ metadata ) { $ data [ 'metadata' ] = [ ] ; foreach ( $ metadata as $ meta_name => $ meta_value ) { $ data [ 'metadata' ] [ $ meta_name ] = $ meta_value ; } return $ data ; }
Adds Image Metadaya to Image Data

@param array $data
@param array $metadata

@return array
Adds Image Metadaya to Image Data