Results of 1 - 2 of about 2 for newHeight (0.001 sec.)
- Imagick::resizeImage — 画像のサイズを変更する | PHP 8.3 11228
- Imagick::resizeImage (PECL imagick 2, PECL imagick 3) Imagick::resizeImage — 画像のサイズを変更する 説明 public function Imagick::resizeImage ( int $columns , int $rows , int $filter , float $blur , bool $bestfit = false , bool $legacy = fa
... imagick -> getImageWidth (); $cropHeight = $imagick -> getImageHeight (); if ( $cropZoom ) { $newWidth = $cropWidth / 2 ; $newHeight = $cropHeight / 2 ; $imagick -> cropimage ( $newWidth , $newHeight , ( $cropWidth - $newWidth ) / 2 , ( $cropHeight - $new ...
-
https://man.mtool.work/php/8.3/imagick.resizeimage.html
- imagecopyresized — 画像の一部をコピーしサイズを変更する | PHP 8.3 7485
- imagecopyresized (PHP 4, PHP 5, PHP 7, PHP 8) imagecopyresized — 画像の一部をコピーしサイズを変更する 説明 function imagecopyresized ( GdImage $dst_image , GdImage $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_wi
... jpeg' ); // 新規サイズを取得します list( $width , $height ) = getimagesize ( $filename ); $newwidth = $width * $percent ; $newheight = $height * $percent ; // 読み込み $thumb = imagecreatetruecolor ( $newwidth , $newheight ); $source = imagecreatefromjpeg ... ( $filename ); // リサイズ imagecopyresized ( $thumb , $source , 0 , 0 , 0 , 0 , $newwidth , $newheight , $width , $height ); // 出力 imagejpeg ( $thumb ); ?> 上の例の出力は、 たとえば以下のようになります。 イメージは半分サイズ ...
-
https://man.mtool.work/php/8.3/function.imagecopyresized.html
PREV
1
NEXT