![]() ![]() Maybe DigiKam adds this suffix in order not to overwrite a pre-existing file. It’s weird, since I don’t see in your bat script a “_v1” intermediary file (for example) that could explain it. Let’s say the input file is “inputA.tif”, I get as a output of the script a “inputA_v1.tif” - which is an exact copy of the input. The result is weird: it’s a copy of the input file. More precisely, it didn’t work well when invoking the bat script from the Digikam interface through the “import” feature. So I installed Digikam and ImageMagick on my Windows virtual machine, and followed the procedure step by step. 17 times ! You were right, Paperdigits, to point that - it’s amazing. So thank you Ashurbanipal to have given the inputs that Snibgo needed, I appreciate, really.Īnd, Snibgo, well… I’m humbled by your kindness and willingness to help - whatever the effort required. However, I read the notifications on my phone in quasi real-time so I was thrilled reading you - and impatient to try. Sorry for the delay, my schedule went astray. Hello and : later in my post, I had to tweak your nicknames because the forum blocks a post mentioning more than 2 people for some reason (I guess it’s a moderation necessity). The input file was x.tiff, and it took me 17 attempts to get it right. ![]() Choose the album you want, than “OK”.Īfter a few seconds, the directory “f:\web\im” now contains two files. Select the images you want to “download”. In the main DigiKam window, menu “import”, “Add images…”, navigate to the directory where your new images are, and hit “choose”.Īt bottom-right, “Settings”, “Execute script for image”, type this: Obviously, use whatever directory you want. When this is executed, it will create two jpegs in “f:\web\im”. ( clone -resize "1080^>" -write f:\web\im\%~n1_a.jpg delete ) ^įor readability I have split the command into lines.īAT files are similar to bash, but the escape and line-continuation character is caret “^” instead of backslash “\”. In my example, it is “f:\web\im\mkdkjpegs.bat”. Give it any name but with “.bat” extension, and put it in any directory. ![]() Ensure its directory is on the system path so the command “magick” works at the command line.Ĭreate a Windows BAT file that does what you need. If you haven’t already, download and install ImageMagick. Also see Add Bash Shell Scripts to the Import Module in digiKam | Scribbles and Snaps, which uses a bash example. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |