display: crop and save selection as a new canvas
Posted: 2015-03-10T12:56:01-07:00
Version: ImageMagick 6.9.0-5 Q16 i686 2015-02-12 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC HDRI Modules OpenCL OpenMP
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma pangocairo png ps rsvg tiff webp wmf x xml zlib
Linux a 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:59:29 CET 2015 i686 GNU/Linux
I have about 50 .jpg files from which I need to select part(s) of each image and save the selections as separate files. There is nothing constant about the size or offsets of each such selection.
Using display, its menus allow one to draw a rectangle around each desired area and save just that to file, but the saved file is distorted because the image has been stretched to the size of the original file. How can I save it with its true size?
If I need to use 'convert' to do this, how can I get the dimensions of the selected rectangle from 'display'? It shows only the offsets of the selection.
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC HDRI Modules OpenCL OpenMP
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma pangocairo png ps rsvg tiff webp wmf x xml zlib
Linux a 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:59:29 CET 2015 i686 GNU/Linux
I have about 50 .jpg files from which I need to select part(s) of each image and save the selections as separate files. There is nothing constant about the size or offsets of each such selection.
Using display, its menus allow one to draw a rectangle around each desired area and save just that to file, but the saved file is distorted because the image has been stretched to the size of the original file. How can I save it with its true size?
If I need to use 'convert' to do this, how can I get the dimensions of the selected rectangle from 'display'? It shows only the offsets of the selection.