Search found 7 matches
- 2011-10-13T23:58:03-07:00
- Forum: Users
- Topic: DOS batch for labeling .jpgs with date from EXIF
- Replies: 8
- Views: 15062
Re: Optimize dos batch for labeling .jpgs with date from EXI
-respect-parenthesis alone did the trick! The final script now only uses one call to convert and looks as follows: @echo off set ptsize=70 set x=0 set y=0 set /a dx1=%x%+1 set /a dy1=%y%+1 set /a dx2=%x%+2 set /a dy2=%y%+2 set cnt=0 set nFiles=0 for /f %%f in ('dir /b *.jpg') do if not "%%a ...
- 2011-10-13T14:44:11-07:00
- Forum: Users
- Topic: DOS batch for labeling .jpgs with date from EXIF
- Replies: 8
- Views: 15062
Re: Optimize dos batch for labeling .jpgs with date from EXI
Thanks again for the competent and quick answer and (for me) for the new insights. I stripped the code down to a command and removed most of the DOS syntax (replace %1 by any .jpg filename, the). The call now is: convert ( %1 -rotate 180 -write temp0.png ) ^ ( -size 800x150 xc:transparent -pointsize ...
- 2011-10-13T13:08:03-07:00
- Forum: Users
- Topic: DOS batch for labeling .jpgs with date from EXIF
- Replies: 8
- Views: 15062
Re: Optimize dos batch for labeling .jpgs with date from EXI
Well, figured that out. The script now doesn't use temporary files, but still could use improvement (on the IM side). rem echo off set ptsize=70 set x=0 set y=0 set /a dx1=%x%+1 set /a dy1=%y%+1 set /a dx2=%x%+2 set /a dy2=%y%+2 for /f %%f in ('dir /b *.jpg') do if not "%%a" == "" call :DoTheMagix ...
- 2011-10-13T12:29:21-07:00
- Forum: Users
- Topic: DOS batch for labeling .jpgs with date from EXIF
- Replies: 8
- Views: 15062
Re: Optimize dos batch for labeling .jpgs with date from EXI
Wow. That was fast. Thanks! I already tried using convert (instead of composite), but failed. Can't remember the reason. I tried it again with convert and it's been quite easy: convert ( %%f -rotate 180 ) ( trans_stamp.png -rotate 180 ) ( mask_mask.bmp -rotate 180 ) -composite -rotate 180 _%%f ...
- 2011-10-13T11:42:58-07:00
- Forum: Users
- Topic: DOS batch for labeling .jpgs with date from EXIF
- Replies: 8
- Views: 15062
DOS batch for labeling .jpgs with date from EXIF
Hello, I wrote a dos batch file which extracts the date and time of a jpg file and adds it to it - in the lower right corner. I wrote the following script (if you execute it, for all .jpg files in the directory where the script resides, a copy will be created which contains the date and time - the ...
- 2010-03-25T08:34:27-07:00
- Forum: Users
- Topic: Inverse Crop
- Replies: 2
- Views: 5727
Re: Inverse Crop
Thanks! That does exactly the job!
- 2010-03-25T07:45:34-07:00
- Forum: Users
- Topic: Inverse Crop
- Replies: 2
- Views: 5727
Inverse Crop
Hello, I am trying to do an 'inverse crop'; this is actually not a very good name, but anyway: I have an image and want to split it in two images retaining the width. I just want to get rid of a stripe in the middle of the image. Is there an elegant way to do this? (What I do is: extract upper part ...