I am currently looping this command (+0+0 is replaced with different coordinates every iteration):
Code: Select all
convert.exe Large.png Small.png -geometry +0+0 -compose over -composite Large.png
Code: Select all
+0+0
+11+22
+33+44
+44+0
+0+99
Code: Select all
convert.exe Large.png Small.png -geometry +0+0 -compose over -composite Large.png
Code: Select all
+0+0
+11+22
+33+44
+44+0
+0+99
Code: Select all
convert.exe Large.png Small.png ^
( -clone 1 -set page +0+0 ) ^
( -clone 1 -set page +11+22 ) ^
( -clone 1 -set page +33+44 ) ^
( -clone 1 -set page +44+0 ) ^
( -clone 1 -set page +0+99 ) ^
-delete 1 ^
-flatten Large.png
Code: Select all
convert.exe Large.png ( Small.png -write mpr:img +delete ) ^
( mpr:img -set page +0+0 ) ^
( mpr:img -set page +11+22 ) ^
( mpr:img -set page +33+44 ) ^
( mpr:img -set page +44+0 ) ^
( mpr:img -set page +0+99 ) ^
-flatten Large.png
Code: Select all
(8191-90)/34=238
Code: Select all
magick -script myscript.txt
That is just the way Imagemagick must be parsed.How come spaces inside the brackets are necessary?
A godsend! Aren't compare.exe, composite.exe, conjure.exe, convert.exe, identify.exe, magick.exe, mogrify.exe, montage.exe, and stream.exe the exact same file, though?snibgo wrote: ↑2018-12-31T14:25:37-07:00 If your command is too long for the shell, write it to a file without the executable name or shell escapes, and run it as a magick script:Code: Select all
magick -script myscript.txt
No each is different. In IM 7, they must be called by prefacing the names with magick, except for convert, which is simply replaced by magick.Aren't compare.exe, composite.exe, conjure.exe, convert.exe, identify.exe, magick.exe, mogrify.exe, montage.exe, and stream.exe the exact same file, though?
Code: Select all
C:> magick.exe --version
Version: ImageMagick 7.0.8-16 Q16 x64 2018-12-10 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC HDRI
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
Code: Select all
img\Large.png img\Small.png ( -clone 1 -set page +0+0 ) -delete 1 -flatten img\Output.png
Code: Select all
C:>magick.exe -script myscript.txt
Code: Select all
magick.exe: UnableToOpenBlob 'imgLarge.png': No such file or directory @ error/blob.c/OpenBlob/3490.
Code: Select all
img/Large.png img/Small.png ( -clone 1 -set page +0+0 ) -delete 1 -flatten img/Output.png
Code: Select all
magick.exe: UnableToOpenBlob 'img/Output.png': No such file or directory @ error
/blob.c/OpenBlob/3490.
Code: Select all
convert.exe img\Large.png img\Small.png ( -clone 1 -set page +0+0 ) -delete 1 -flatten img\Output.png
convert.exe img/Large.png img/Small.png ( -clone 1 -set page +0+0 ) -delete 1 -flatten img/Output.png
Code: Select all
img/Large.png img/Small.png ( -clone 1 -set page +0+0 ) -delete 1 -flatten -write img/Output.png