Lines Matching refs:to_w
1964 * @param int $to_w desired width
1968 function media_resize_imageIM($ext, $from, $from_w, $from_h, $to, $to_w, $to_h)
1977 $cmd .= ' -resize ' . $to_w . 'x' . $to_h . '!';
1998 * @param int $to_w desired width
2005 function media_crop_imageIM($ext, $from, $from_w, $from_h, $to, $to_w, $to_h, $ofs_x, $ofs_y)
2015 $cmd .= ' -crop ' . $to_w . 'x' . $to_h . '+' . $ofs_x . '+' . $ofs_y;
2037 * @param int $to_w desired width
2044 function media_resize_imageGD($ext, $from, $from_w, $from_h, $to, $to_w, $to_h, $ofs_x = 0, $ofs_y = 0)
2052 if (!is_mem_available(($from_w * $from_h * 4) + ($to_w * $to_h * 4))) {
2072 $newimg = @imagecreatetruecolor($to_w, $to_h);
2074 if (!$newimg) $newimg = @imagecreate($to_w, $to_h);
2112 if (!@imagecopyresampled($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h)) {
2113 imagecopyresized($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h);
2116 imagecopyresized($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h);