Imagemagick Crop command not giving perfect result

后端 未结 2 1720
醉梦人生
醉梦人生 2021-02-04 16:57

I am using Imagemagick for resizing and cropping image.

Test Image :

\"enter

<
2条回答
  •  情书的邮戳
    2021-02-04 17:11

    Try:

    $inputFile = "WPTgp.jpg";
    exec("convert {$inputFile} -resize 290x310^ -gravity Center -crop 290x310+0+0 picCropped.png");
    

    Hope that helps

提交回复
热议问题