« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for deskewImagick (0.005 sec.)
Imagick::deskewImage — 傾きを除去する | PHP 8.3 9414
Imagick::deskewImage (PECL imagick 2 >= 2.3.0, PECL imagick 3 >= 3.3.0) Imagick::deskewImage — 傾きを除去する 説明 public function Imagick::deskewImage ( float $threshold ): bool このメソッドを使うと、スキャナでの読み込み時にうまく紙を置かな ... ?php function deskewImage ( $threshold ) { $imagick = new \Imagick ( realpath ( "images/NYTimes-Page1-11-11-1918.jpg" )); $deskewImagick = clone $imagick ; //This is the only thing required for deskewing. $deskewImagick -> deskewImage ( $threshold ); //The re ... st of this example is to make the result obvious - because //otherwise the result is not obvious. $trim = 9 ; $deskewImagick -> cropImage ( $deskewImagick -> getImageWidth () - $trim , $deskewImagick -> getImageHeight (), $trim , 0 ); $imagick -> ... cropImage ( $imagick -> getImageWidth () - $trim , $imagick -> getImageHeight (), $trim , 0 ); $deskewImagick -> resizeimage ( $deskewImagick -> getImageWidth () / 2 , $deskewImagick -> getImageHeight () / 2 , \Imagick :: FILTER_LAN ...
https://man.mtool.work/php/8.3/imagick.deskewimage.html
PREV 1 NEXT