Lines Matching full:image

61  * Handles the saving of image meta data
146 * Display the form to edit image meta data
664 if (str_starts_with($mime, 'image/')) {
666 if ($mime == 'image/gif' && $info[2] != 1) {
668 } elseif ($mime == 'image/jpeg' && $info[2] != 2) {
670 } elseif ($mime == 'image/png' && $info[2] != 3) {
803 * @param string $image filename of the current image
806 function media_tabs_details($image, $selected_tab = '') argument
816 [, $mime] = mimetype($image);
817 if ($mime == 'image/jpeg' && file_exists(mediaFN($image))) {
1007 * @param string $image media id
1012 function media_tab_view($image, $ns, $auth = null, $rev = '') argument
1017 if ($image && $auth >= AUTH_READ) {
1018 $mf = new MediaFile($image, $rev);
1020 media_preview_buttons($image, $auth, $rev);
1021 media_details($image, $auth, $rev, $mf->getMeta());
1032 * @param string $image media id
1036 function media_tab_edit($image, $ns, $auth = null) argument
1040 if ($image) {
1041 [, $mime] = mimetype($image);
1042 if ($mime == 'image/jpeg') media_metaform($image, $auth);
1051 * @param string $image media id
1055 function media_tab_history($image, $ns, $auth = null) argument
1063 if ($auth >= AUTH_READ && $image) {
1065 (new MediaDiff($image))->show(); //media_diff($image, $ns, $auth);
1068 (new MediaRevisions($image))->show($first);
1080 * @param string $image media id
1084 function media_preview_buttons($image, $auth, $rev = '') argument
1090 if ($auth >= AUTH_DELETE && !$rev && file_exists(mediaFN($image))) {
1094 'action' => media_managerURL(['delete' => $image], '&'),
1109 'action' => media_managerURL(['image' => $image, 'mediado' => 'update'], '&'),
1119 …if ($auth >= AUTH_UPLOAD && $rev && $conf['mediarevisions'] && file_exists(mediaFN($image, $rev)))…
1123 'action' => media_managerURL(['image' => $image], '&'),
1139 * Returns the requested EXIF/IPTC tag from the image meta
1193 * @param string $image image id
1196 * @param bool|JpegMeta $meta image object, or create one if false
1198 function media_details($image, $auth, $rev = '', $meta = false) argument
1202 if (!$meta) $meta = new JpegMeta(mediaFN($image, $rev));
1221 $media_usage = (new MetadataSearch())->mediause($image, true);
1237 * @param string $image image id
1244 function media_diff($image, $ns, $auth, $fromajax = false) argument
1262 * Shows difference between two revisions of image
1266 * @param string $image
1274 function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax) argument
1285 * @param string $image image id
1293 function media_image_diff($image, $l_rev, $r_rev, $l_size, $r_size, $type) argument
1301 * @param string $image media id
1308 function media_restore($image, $rev, $auth) argument
1312 $removed = (!file_exists(mediaFN($image)) && file_exists(mediaMetaFN($image, '.changes')));
1313 if (!$image || (!file_exists(mediaFN($image)) && !$removed)) return false;
1314 if (!$rev || !file_exists(mediaFN($image, $rev))) return false;
1315 [, $imime, ] = mimetype($image);
1317 mediaFN($image, $rev),
1318 mediaFN($image),
1319 $image,
1449 $media_manager_params = ['tab_files', 'tab_details', 'image', 'ns', 'list', 'sort'];
1459 unset($gets['image']);
1494 $id = cleanID($INPUT->str('image'));
1710 // TODO: only deliver an image if it actually has a subtree...
1716 * Resizes or crop the given image to the given size
1759 * Resizes the given image to the given size
1775 * Center crops the given image to the wanted size
1797 * @param string $id id of the image
1861 * Download image files
1877 $http->header_regexp = '!\r\nContent-Type: image/(jpe?g|gif|png)!i';
1889 // check if it is really an image
2002 // create an image of the given filetype
2003 $image = false;
2006 $image = @imagecreatefromjpeg($from);
2009 $image = @imagecreatefrompng($from);
2012 $image = @imagecreatefromgif($from);
2014 if (!$image) return false;
2022 imagedestroy($image);
2035 $transcolorindex = @imagecolortransparent($image);
2037 $transcolor = @imagecolorsforindex($image, $transcolorindex);
2058 … if (!@imagecopyresampled($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h)) {
2059 imagecopyresized($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h);
2062 imagecopyresized($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h);
2086 // destroy GD image resources
2087 imagedestroy($image);