ImageMagik resizing command?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Quamen
    Confirmed User
    • Apr 2003
    • 67

    #1

    ImageMagik resizing command?

    Anyone know if there is a specific command line for ImageMagik so that the thumbnails being created will be resized to the exact size specified, but not distorted to fit the dimensions?

    For example... with this command:

    $mogrifyPath." -quality 95 -resize ".$_POST["th_width"]."x".$_POST["th_height"]."!

    The thumbnails created are resized to the width and height specified in the script, but if the large image is not same proportion as the thumb dimensions, it squishes it to fit, distorting the image.

    I think there is a way for ImageMagik to crop either horizontally or vertically as well as resize so that the image does not get distorted, but I cannot figure it out, lol!

    Any ideas would be appreciated!

    Thanks
  • calmlikeabomb
    Confirmed User
    • May 2004
    • 1323

    #2
    PHP Code:
    exec('convert /pathto/image.gif -thumbnail 88x88 /pathto/newimage.gif'); 
    
    subarus.

    Comment

    Working...