Is mogrify -crop creating a bunch of extra files for you?

Mar 26th, 2011 | By | Category: Linux / Freebsd, Technology

So here you are minding your own businesses, trying to crop some images when mogrify decides to be a wise-guy and spit out a bunch of extra files.  You’re running a command like mogrify -crop 40×40 image.jpg and instead of the end result being a 40×40 image.jpg you have image-0.jpg and image-1.jpg with -0 being 40×40 and the rest of them being the scraps that were left over.  Gah!

Well not to fret, everything’ll be shiny in a second.  Instead of going mogrify -crop 40×40 you just need to add +0+0 on the end of that so in the end your command looks like:

mogrify -crop 40×40+0+0 image.jpg


Viola, no more mess.  Enjoy

Tags: , , , , ,

4 Comments to “Is mogrify -crop creating a bunch of extra files for you?”

  1. Flabby says:

    Thanks for this post, you just saved me a lot of frustration. 🙂

  2. Simon says:

    This doesn’t work for me – I still have left over scraps. Is there anything else I can try?

  3. admin says:

    Not sure, that solved it for me.. Sorry 🙁

  4. Simon says:

    I fixed my problem…..

    I was using:
    mogrify -crop 40×40x0x0 image.jpg

    When I should have been using:
    mogrify -crop 40×40+0+0 image.jpg

    Accidentally used x’s instead of +’s for the X and Y vals

Leave a Comment