Lines Matching defs:meta
58 * Handles the saving of image meta data
76 $meta = new JpegMeta($src);
77 $meta->_parseAll();
82 $meta->deleteField($key);
84 $meta->setField($key, $val);
94 if ($meta->save()) {
143 * Display the form to edit image meta data
175 'class' => 'meta'
192 'name' => 'meta[' . $field[0] . ']'
1015 $meta = new JpegMeta(mediaFN($image, $rev));
1016 media_preview($image, $auth, $rev, $meta);
1018 media_details($image, $auth, $rev, $meta);
1078 * @param JpegMeta|bool $meta
1082 function media_preview($image, $auth, $rev = '', $meta = false)
1085 $size = media_image_preview_size($image, $rev, $meta);
1180 * @param JpegMeta|bool $meta
1184 function media_image_preview_size($image, $rev, $meta = false, $size = 500)
1195 if ($meta && ($w > $size || $h > $size)) {
1196 $ratio = $meta->getResizeRatio($size, $size);
1204 * Returns the requested EXIF/IPTC tag from the image meta
1209 * @param JpegMeta $meta
1213 function media_getTag($tags, $meta = false, $alt = '')
1215 if (!$meta) return $alt;
1216 $info = $meta->getField($tags);
1226 * @param JpegMeta $meta
1229 function media_file_tags($meta)
1246 $value = media_getTag($t, $meta);
1261 * @param bool|JpegMeta $meta image object, or create one if false
1263 function media_details($image, $auth, $rev = '', $meta = false)
1267 if (!$meta) $meta = new JpegMeta(mediaFN($image, $rev));
1268 $tags = media_file_tags($meta);