Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How automate crops of an image
#16
(08-13-2020, 06:49 AM)Ofnuts Wrote:
(08-13-2020, 04:08 AM)stevem0 Wrote: I am a long ways from getting the script to work,  the wide.png is in working directory
When I enter this line:
$ convert wide.png -crop 750x100+$i+0 +repage "%02d"$i.png
  it gives me the error:
Invalid Parameter - -crop

What ImageMagick version? IIRC -crop is a recent addition.

Version: ImageMagick 7.0.10-25 Q16 x64 2020-08-01

(08-13-2020, 07:04 AM)rich2005 Wrote: ImageMagick (IM) command line in a terminal still widely used.

Quote:..I can run "magick wide.png win:

If that works then you are using IM version 7 Is this in linux or Windows ? Obvously bash for linux, you need an equivalent  bat file for Win. I am really rusty with Windows batch when it comes to loops.  For IM 7 exchange magick for convert (convert is also a Windows command that plagues Windows users)
I am using cygwin, I believe that is a "linux" emulation terminal for windows.  I installed the imageMagick version ImageMagick-i686-pc-cygwin.tar.gz for cygwin.  I downloaded that file within cygwin (wget) tar and installed in the cygwin environment. 

$ magick -version

Version: ImageMagick 7.0.10-25 Q16 x64 2020-08-01 http://www.imagemagick.org

Copyright: Copyright © 1999-2018 ImageMagick Studio LLC

License: http://www.imagemagick.org/script/license.php

Visual C++: 192628806

Features: Cipher DPC HDRI Modules OpenCL OpenMP(2.0)

Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr
 lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib
Reply


Messages In This Thread
How automate crops of an image - by stevem0 - 08-12-2020, 01:24 AM
RE: How automate crops of an image - by Ofnuts - 08-12-2020, 08:35 AM
RE: How automate crops of an image - by stevem0 - 08-12-2020, 02:20 PM
RE: How automate crops of an image - by Kevin - 08-12-2020, 02:47 PM
RE: How automate crops of an image - by denzjos - 08-12-2020, 02:49 PM
RE: How automate crops of an image - by stevem0 - 08-12-2020, 03:58 PM
RE: How automate crops of an image - by Ofnuts - 08-12-2020, 04:11 PM
RE: How automate crops of an image - by stevem0 - 08-12-2020, 03:23 PM
RE: How automate crops of an image - by Ofnuts - 08-12-2020, 03:46 PM
RE: How automate crops of an image - by stevem0 - 08-12-2020, 04:48 PM
RE: How automate crops of an image - by rich2005 - 08-12-2020, 06:24 PM
RE: How automate crops of an image - by stevem0 - 08-13-2020, 04:08 AM
RE: How automate crops of an image - by Ofnuts - 08-13-2020, 06:49 AM
RE: How automate crops of an image - by stevem0 - 08-13-2020, 11:51 AM
RE: How automate crops of an image - by stevem0 - 08-12-2020, 08:05 PM
RE: How automate crops of an image - by rich2005 - 08-13-2020, 07:04 AM
RE: How automate crops of an image - by rich2005 - 08-13-2020, 12:46 PM
RE: How automate crops of an image - by stevem0 - 08-13-2020, 08:58 PM

Forum Jump: