Search found 12 matches
- 2017-05-30T12:55:02-07:00
- Forum: Users
- Topic: How to join images in a 2x2 grid using "convert"
- Replies: 6
- Views: 6773
Re: How to join images in a 2x2 grid using "convert"
Success! Based on Snibgo help, I managed the successful: SETLOCAL EnableDelayedExpansion SET IMCONV="%PROGRAMFILES%\ImageMagick-7.0.4-Q16\Convert" SET COUNT=0 setlocal ENABLEDELAYEDEXPANSION FOR /R %%T IN (*.jpg) DO ( SET /A COUNT=!COUNT!+1 REN %%T A!COUNT!.jpg ) :EOF set count=0 for %%x in (*.jpg ...
- 2017-05-30T12:45:03-07:00
- Forum: Users
- Topic: How to join images in a 2x2 grid using "convert"
- Replies: 6
- Views: 6773
Re: How to join images in a 2x2 grid using "convert"
The fact that I renamed Convert into IMCONV in the line: SET IMCONV="%PROGRAMFILES%\ImageMagick-7.0.4-Q16\Convert" was been advised by IM itself so that there will be no conflict with Windows System own Convert operation... Please disregard this line and provide your own lines of codes as you would ...
- 2017-05-30T11:46:50-07:00
- Forum: Users
- Topic: How to join images in a 2x2 grid using "convert"
- Replies: 6
- Views: 6773
Re: How to join images in a 2x2 grid using "convert"
Snibgo, Inspired by your answer, and trying to incorporate it in my humble program, I manage no better than: SETLOCAL EnableDelayedExpansion SET IMCONV="%PROGRAMFILES%\ImageMagick-7.0.4-Q16\Convert" SET COUNT=0 setlocal ENABLEDELAYEDEXPANSION FOR /R %%T IN (*.jpg) DO ( SET /A COUNT=!COUNT!+1 REN %%T ...
- 2017-05-30T10:48:03-07:00
- Forum: Users
- Topic: How to join images in a 2x2 grid using "convert"
- Replies: 6
- Views: 6773
How to join images in a 2x2 grid using "convert"
Hi All I am using this batch script extensively to collates images side by side: SETLOCAL EnableDelayedExpansion SET IMCONV="%PROGRAMFILES%\ImageMagick-7.0.4-Q16\Convert" SET COUNT=0 setlocal ENABLEDELAYEDEXPANSION FOR /R %%T IN (*.jpg) DO ( SET /A COUNT=!COUNT!+1 REN %%T A!COUNT!.jpg ) :EOF @echo ...
- 2016-10-04T09:41:58-07:00
- Forum: Users
- Topic: Translate a Shell script into Windows Batch file
- Replies: 3
- Views: 3572
Translate a Shell script into Windows Batch file
Hi Would you please assist me to turn this shell script (kindly written by fmw42) into a batch file: cd cd desktop/test1 imgname="rose" arr=(`ls ${imgname}*.png`) numimg=${#arr[*]} num=`echo "scale=0; $numimg/2" | bc` for ((i=0; i<num; i++)); do j=$((2*i+1)) k=$((j+1)) convert ${imgname}$j.png ...
- 2016-09-04T14:00:37-07:00
- Forum: Users
- Topic: loop merge side by side jpgs in Cygwin
- Replies: 13
- Views: 6005
Re: loop merge side by side jpgs in Cygwin
thank... I will look at this tommorow after work..
bye till then
bye till then
- 2016-09-04T13:39:05-07:00
- Forum: Users
- Topic: loop merge side by side jpgs in Cygwin
- Replies: 13
- Views: 6005
Re: loop merge side by side jpgs in Cygwin
Done, but still getting ls: cannot access 'A'$'\r''*.jpg': No such file or directory I suspect it is the cd thing... when it worked line by line, I navigated manually to a location on E:/Test1 (I couldn't get to Desktop, so I cd my way to the folder on E:/Test1 and made my stuff there) But I cannot ...
- 2016-09-04T13:18:44-07:00
- Forum: Users
- Topic: loop merge side by side jpgs in Cygwin
- Replies: 13
- Views: 6005
Re: loop merge side by side jpgs in Cygwin
wow! it worked! it worked line by line (cause my bash run.sh is not working) and with
the num=`convert xc: -format "%[fx:floor($numimg/2)]" info:` line
b4n, and again thanks
i will definitely study bash and read on cygwin with imagemagick
the num=`convert xc: -format "%[fx:floor($numimg/2)]" info:` line
b4n, and again thanks
i will definitely study bash and read on cygwin with imagemagick
- 2016-09-04T12:27:34-07:00
- Forum: Users
- Topic: loop merge side by side jpgs in Cygwin
- Replies: 13
- Views: 6005
Re: loop merge side by side jpgs in Cygwin
Thanks guys.
I will have some time studying bash.
then I will study back the solution.
I will definitely read on: http://im.snibgo.com/cygwin.htm
Regards
I will have some time studying bash.
then I will study back the solution.
I will definitely read on: http://im.snibgo.com/cygwin.htm
Regards
- 2016-09-04T12:14:36-07:00
- Forum: Users
- Topic: loop merge side by side jpgs in Cygwin
- Replies: 13
- Views: 6005
Re: loop merge side by side jpgs in Cygwin
fmw42:
I understand I should run this line by line, wright?
when I am at line:
num=`echo "scale=0; $numimg/2" | bc`
cygwin would give me:
$ num=`echo "scale=0; $numimg/2" | bc`
-bash: bc: command not found
I understand I should run this line by line, wright?
when I am at line:
num=`echo "scale=0; $numimg/2" | bc`
cygwin would give me:
$ num=`echo "scale=0; $numimg/2" | bc`
-bash: bc: command not found
- 2016-09-04T10:44:17-07:00
- Forum: Users
- Topic: loop merge side by side jpgs in Cygwin
- Replies: 13
- Views: 6005
Re: loop merge side by side jpgs in Cygwin
My version is ImageMagick-6.7.6
would you please hint me how to make the shell script? I am new to cygwin
would you please hint me how to make the shell script? I am new to cygwin
- 2016-09-04T09:36:53-07:00
- Forum: Users
- Topic: loop merge side by side jpgs in Cygwin
- Replies: 13
- Views: 6005
loop merge side by side jpgs in Cygwin
Dear All I am new to both Cygwin and Imagemagic, but I am planning to convert to Linux soon, thus I would like to work in Cygwin for the moment, so I can take the algorithm with me. I have (say one) folder with jpg images (scans of books), and would like to merge them side by side, like a "dual ...