JS BUG! PLEASE RELOAD!
Title image

EXTENT

An Image Magick Tute by Flo



Extent will either chop off the Right side and/or Bottom of an image, or put a black border along the Right side and/or Bottom.

Chop Right Side and/or Bottom:


300x300 image. Resize @ 250x275 Extent


This results in 50 pixels missing from the Right side and 25 missing from the Bottom. But the rest of the image is unaltered.

You might want to use this method to chop off part of an image before framing. Or chop off part or all of the frame to give it an off-center look.

Please note: no exclamation point is needed when using Extent.



ADD Black Border to Right Side and/or Bottom


300x300 image. Resize @ 350x375 Extent


Results in the original image remaining intact @ 300x300. But now it has a 50 pixel wide Right side black border and a 75 pixel high Bottom border.

You can now annotate or draw on these black borders. This is what I did with the title image and the following:



Click on image
to see it full-sized
on a black background.



If you want the black side to be on the Left, then before resizing, go to Transform and Flop.

Or if you want it elsewhere, then Flip for a Top border, or Flip and Flop for Top and Left side border, before using Resize/Extent. Remember, there's always the Back button if it doesn't turn out right. Also, remember to go back to Transform and Flip and/or Flop again to orient the image correctly.





SUMMARY


ORIGINAL: 300X200


  1. EXTENT: ADD 50x50 black border, Right side and Bottom: 350X250


  2. EXTENT: ADD 50x50 black border, Left side and Top.

    • Go to Transform first and Flip-Flop


    • Then to Resize-Extent: 350X250


    • Back to Transform Flip-Flop to get the image back to its original orientation.


  3. Extent: ADD 50x0 border on Right side only: 350X200


  4. Extent: ADD 0x50 border on Bottom only: 300X250


  5. Extent: CROP OFF 20x20 from Right side and Bottom of an image: 280X180


  6. Extent: CROP OFF 20x0 from Right side only: 280x200


  7. Extent: CROP OFF 0x20 from Bottom only: 300x280


  8. Extent: CROP OFF 20x20 from Left side and Top:

    • Go to Transform first and Flip-Flop


    • Then to Resize-Extent: 280X180


    • Back to Transform Flip-Flop to get the image back to its original orientation.


  9. Extent: CROP OFF 20x0 from Left side only:

    • Go to Transform and Flop


    • Resize-Extent: 300x280


    • Back to Transform-Flop


  10. Extent: CROP OFF 0x20 Top only:

    • Tranform and Flip


    • Resize-Extent: 280x200


    • Back to Transform-Flip




Resize ~ Half Size ~ Double Size ~ Scale
Extent ~ Thumbnail
Optional Attributes

Why Resize? (for background images)





Back to Flo's IM Tutes

Copyright © , Tone By Tone Dot Net





Friday 09th of January 2009 10:12:36 AM

Flo's Image Magick Tutes ~ Flo's Other Tutes

Dave's Tools Tutes by Flo

by Tone By Tone Dot Net

Tandem Tooters
~ Arbor Hosting ~