kecros.blogg.se

Imagemagic python only creates black screen windows
Imagemagic python only creates black screen windows





  1. #Imagemagic python only creates black screen windows install
  2. #Imagemagic python only creates black screen windows windows 10

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.

#Imagemagic python only creates black screen windows install

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. Too abstract for me! However, I’d be happy to share it somehow (GitHub?). It’s my first ever Python script, that I had to write (instead of hacking Dmitri’s) because I’m too noob to understand Dmitri far more advanced Python knowledge. I’d be happy to document it properly if we find a solution for this, maybe for the “NFAQ” (Non-Frequently Asked Question) part of Digikam doc?īy the way, inspired by Dmitri script to automatically group pictures (called dkgroup), I wrote my own version to meet my father’s needs. In all cases, I’m not a professional dev, just an amateur. I rarely need to script anything on Windows. I figure there must be one or two Windows tricks that I can’t figure. Install WSL with Ubuntu, sudo apt install imagemagick and call from Digikam (installed as an classic Windows program) a script that will somehow use the imagemagick cli

imagemagic python only creates black screen windows imagemagic python only creates black screen windows

Install ImageMagick binaries for Windows and do the whole thing “Windows-ly”. I thought that would be easy and… nope, I can’t figure a way.

imagemagic python only creates black screen windows

#Imagemagic python only creates black screen windows windows 10

No issues on my Linux, but my father uses Windows 10 (and I won’t convert him to Linux). The need is to convert a batch of TIF pictures from an album to 2 JPEG, one in HD (height 1080 px), one in 4K (height 2160 px). It was quite easy to launch such a bash script from Digikam on my KDE Neon computer - thanks to Dmitri “recipes” book (that both my father and I bought - which is fine, totally worth it). I’m helping my father digitizing his huge photo collection.







Imagemagic python only creates black screen windows