Page 1 of 1

How to add a "soft crop" frame to an image

Posted: 2014-02-28T12:35:00-07:00
by art11s
As part of our workflow, photo producers would open an image in Photoshop and tone the "soft cropped" area (just a box marked inside the full size image). Before that step I need to insert the crop metadata into an image, that would display the crop box when opened in Photoshop. One way to generate a soft crop box in Photoshop is to insert a path or clipPath. Is it possible to add those using ImageMagick? If not, are there any alternatives?

Re: How to add a "soft crop" frame to an image

Posted: 2014-02-28T13:22:23-07:00
by snibgo
I don't think IM can add a clip path. It could add another raster layer, which might be transparent except for the clip outline, etc.

You could do it as a script in Gimp. Does Photoshop have a script facility? If so, that would be another possibility.

Re: How to add a "soft crop" frame to an image

Posted: 2014-02-28T13:57:51-07:00
by fmw42
Can you provide an example of your "soft cropped" result? I am not sure I understand what processing you are doing? Is it just processing a rectangular area in the image to make it brighter or darker? Where does the crop come in?

In IM you can use -region to process a rectangular area of the image. But as user snibgo has pointed out, I do not know that IM can put those coordinates into your image automatically. You could possibly get the coordinates and insert them using EXIFTOOL as a clip-path. But I do not know enough about doing that. It is just a suggestion to look into.

see
http://www.imagemagick.org/Usage/masking/#clip

for clip path, clip, mask and region

Re: How to add a "soft crop" frame to an image

Posted: 2014-02-28T14:09:47-07:00
by art11s
I'm receiving the original image and separate file with metadata about the crop geometry from a feed. The objective is draw a rectangle as a marker to let the users know that they only need to tone that area. But don't want to modify the actual image by drawing shapes, etc as they might want to change the size of the crop later. That's what the path in Photoshop allows you to do.

Will research the exiftool.