Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I modified it and the dos window simply exited without executing the commands. Is there a way to show precisely which step is causing the problem?
Set FILESIZE=1000000
For %%a in (*.jpg) do (
Set ZERO=Blues\%%~na-007-a.jpg
for %%f in (%ZERO%) do set BYTE=%%~zf
IF %BYTE% LEQ %FILESIZE% (
convert Blues\%%~na-007-a.jpg Blues\%%~na-007-b.jpg Blues\%%~na-007-c.jpg Blues\%%~na-007-d.jpg -background grey +append Done\%%~na.jpg
) ELSE (
convert Blues\%%~na-007-a.jpg Blues\%%~na-007-b.jpg Blues\%%~na-007-c.jpg Blues\%%~na-007-d.jpg -background grey -append Done\%%~na.jpg
)
)
Set FILESIZE=1000000
For %%a in (*.jpg) do Set ZERO=Blues\%%~na-007-a.jpg
For %%f in (%ZERO%) do set BYTE=%%~zf
IF %BYTE% LEQ %FILESIZE% GOTO APPEND1 ELSE GOTO APPEND2
:APPEND1
convert Blues\%%~na-007-a.jpg Blues\%%~na-007-b.jpg Blues\%%~na-007-c.jpg Blues\%%~na-007-d.jpg -background grey +append Done\%%~na.jpg
:APPEND2
convert Blues\%%~na-007-a.jpg Blues\%%~na-007-b.jpg Blues\%%~na-007-c.jpg Blues\%%~na-007-d.jpg -background grey -append Done\%%~na.jpg