Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
How would I crop an image if it is bigger the the supplied dimensions and only crop the dimension that is bigger? Here is the command I have right now:
crop should crop to those dimension specified or the size of the image if smaller. So you should get the proper behaviour you seem to want. If I misunderstand, please clarify further or provide a case where it fails.
The offset I need messes up everything because it then crops with that offset in mind. Using gravity causes the me to get the wrong part of the image. I want it to only crop if the image dimensions are only bigger than the crop area and ignore the offset otherwise. Is there a way to do this?
Sorry I am still confused. Can you show us an example of what is happening along with your command. You can upload images to some free server and provide a link here to your images.