Search found 7 matches
- 2014-02-11T09:30:00-07:00
- Forum: Users
- Topic: Suggestions for automating quick color correction
- Replies: 2
- Views: 1336
Suggestions for automating quick color correction
I'd like to add some quick, reliable color/contrast/brightness correction to a process that runs through many images for web use, without requiring input from me. I have a batch file that runs IM to convert large numbers of files for a web site. I can do just about anything successfully that can be ...
- 2014-02-05T12:35:57-07:00
- Forum: Users
- Topic: Improve windowsbatch handling of portrait & landscape images
- Replies: 8
- Views: 3701
Re: Improve windowsbatch handling of portrait & landscape im
SET /A WW2=WW*2 IF !HH! LEQ !WW! SET /A LS=WW IF !HH! GTR !WW! SET /A LS=HH SET /A BW=LS/400, FW=LS/33 should be SET /A WW2=!WW!*2 IF !HH! LEQ !WW! SET /A LS=!WW! IF !HH! GTR !WW! SET /A LS=!HH! SET /A BW=!LS!/400, FW=!LS!/33 Done! I'd understood that in SET /A one was not required to use the %'s ...
- 2014-02-05T11:37:02-07:00
- Forum: Users
- Topic: Improve windowsbatch handling of portrait & landscape images
- Replies: 8
- Views: 3701
Re: Improve windowsbatch handling of portrait & landscape im
Your for-loop has parenthesis, and so does the IM convert, within the for parenthesis, so you need to escape it. Change a line to: -background black ^( +clone -shadow 60x10+10+10 -rotate 180 ^) Much thanks! That worked great. I was on the wrong track completely. Just as a side note and for anyone ...
- 2014-02-05T08:06:56-07:00
- Forum: Users
- Topic: Improve windowsbatch handling of portrait & landscape images
- Replies: 8
- Views: 3701
Re: Improve windowsbatch handling of portrait & landscape im
To get the width and height, I generally use something like this: FOR /F "usebackq" %%L IN (`%IM%identify -format "WW=%%w\nHH=%%h" x.jpg`) DO set %%L If you need double the width, either use "set /A WW2=%WW%*2" or: FOR /F "usebackq" %%L IN (`%IM%identify -format "WW=%%w\nHH=%%h\nWW2=%%[fx:w*2]" x ...
- 2014-02-01T15:05:02-07:00
- Forum: Users
- Topic: Getting command line to work in windows batch file.
- Replies: 2
- Views: 1909
Re: Getting command line to work in windows batch file.
You are looping through all the jpegs, %%A. For every one you find, you try to loop through them all again. I don't see why, especially as you never use %%A. Then you have a bug, writing "FOR %a" instead of "FOR %%a". Ah, hell. That's a typo- more accurately a copy/paste error. You are quite right ...
- 2014-02-01T09:15:25-07:00
- Forum: Users
- Topic: Getting command line to work in windows batch file.
- Replies: 2
- Views: 1909
Getting command line to work in windows batch file.
I'm having trouble getting a convert command line to work in a windows .cmd file. The command line (sort of like -polaroid) works fine: FOR %a in (*.jpg) DO convert %%a[800x] -set filename:fname %t -auto-orient -bordercolor grey60 -border 2 -bordercolor white -border 24 -bordercolor grey60 -border 2 ...
- 2014-02-01T08:55:44-07:00
- Forum: Users
- Topic: Improve windowsbatch handling of portrait & landscape images
- Replies: 8
- Views: 3701
Improve windowsbatch handling of portrait & landscape images
I'd like to improve my handling of a series of images of varied portrait/landscape orientation as well as varied aspect ratio. I'm currently handling this by resizing everything to an arbitrary width of 800px, using the -wave operator, and the resizing again down to thumbnail size, as follows: FOR ...