Select a frame and a region from command line

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?".
Post Reply
ahmed.eldawy

Select a frame and a region from command line

Post by ahmed.eldawy »

Hello,
I use convert command line tool to extract parts of images.
I have a multipage tiff file and I need to extract (crop) part of the image.
I know that I can select the 4th frame using
filename[3]
also I can select part of an image using
filename[20x30+3+30]
I need to do both. I need to select one frame and only a part of this frame.
I can select a frame using [] then use -crop option to select part of the frame but I read that using [] to extract part of image is faster and needs less memory. There's why I need to use brackets for both cropping and selecting a frame.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Select a frame and a region from command line

Post by magick »

Filename brackets support inline frame selection, region extraction, and resizing. However, it only supports one of these processes at a time.
Post Reply