Hello -
I frequently use the "Transform" and "Image Edit" submenus from the "display" GUI to make quick edits to a graphic file. However, sometimes it is necessary to make identical edits (for example, crop the same size window at the same location, or draw the same line at the same location) for a number of files. For this, it would be convenient to record the coordinates and offsets that the GUI is using, so that the remaining files would could be edited from the command line using "convert".
At times, I have manually recorded the coordinates that display was using, but this process is time-consuming and prone to error.
Is there a way to configure "display" to record the edits made, so they can be repeated in a "convert" command?
Thank you for any assistance -
____________________________________________________________________________________________
Using Ubunu 14.04 LTS, and
$ convert -version
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
logging edits from display GUI
Re: logging edits from display GUI
In "display", save the file as PNG. Then "identify file.png" will show the coordinates.
- glenn.rp> q16identify DSC06638.JPG
DSC06638.JPG JPEG 3872x2592 3872x2592+0+0 8-bit sRGB 3.371MB 0.000u 0:00.000
glenn.rp> q16display DSC06638.JPG # (crop and save as gulls.png)
glenn.rp> q16identify gulls.png
gulls.png PNG 1309x319 3872x2592+2031+1030 8-bit sRGB 517KB 0.000u 0:00.000
Re: logging edits from display GUI
Yes, this does work for a simple crop. Thank you.In "display", save the file as PNG. Then "identify file.png" will show the coordinates.
What about recording the input to a "draw" command from the "Image Edit" menu?
Here is a sample scenario: In a slide presentation, might want to annotate a picture with some simple draw primitives (lines, rectangles, ellipses, etc.). I would use the display GUI to properly locate and size the elements. Then exit display and using the information it has recorded, create a new image of the same size as the original picture, transparent except for these primitives. In the slide show, exhibit first the original picture, then annotate it by overlaying with the new image.
Is this possible?