Lines Matching defs:to_w
1972 * @param int $to_w desired width
1976 function media_resize_imageIM($ext, $from, $from_w, $from_h, $to, $to_w, $to_h)
1985 $cmd .= ' -resize ' . $to_w . 'x' . $to_h . '!';
2006 * @param int $to_w desired width
2013 function media_crop_imageIM($ext, $from, $from_w, $from_h, $to, $to_w, $to_h, $ofs_x, $ofs_y)
2023 $cmd .= ' -crop ' . $to_w . 'x' . $to_h . '+' . $ofs_x . '+' . $ofs_y;
2045 * @param int $to_w desired width
2052 function media_resize_imageGD($ext, $from, $from_w, $from_h, $to, $to_w, $to_h, $ofs_x = 0, $ofs_y = 0)
2060 if (!is_mem_available(($from_w * $from_h * 4) + ($to_w * $to_h * 4))) {
2080 $newimg = @imagecreatetruecolor($to_w, $to_h);
2082 if (!$newimg) $newimg = @imagecreate($to_w, $to_h);
2120 if (!@imagecopyresampled($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h)) {
2121 imagecopyresized($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h);
2124 imagecopyresized($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h);