I'm trying to apply this bash script to a .jpg file. When I run the following from Windows terminal: wsl /mnt/c/Users/surfacepro/Scripts/imagemagickcaption.sh $SHELL I get: Please enter your caption and press enter testing caption is testing cp: cannot remove 'bakups/bash': Permission denied ...
Tx for your reply. I just tried it with your advice, but still the same result. I'm running it in a Windows terminal. When running in Windows terminal I prepend it with "wsl". This works with all the other bash scripts I use. But when I try it in the Windows Subsystem for Linux Unix terminal it ...
I've been using the following bash script to caption images. This bash script worked on Linux, but since switching to Windows and using Windows Subsystem for Linux I'm not able to get it to work, despite have all the required programs installed. When using it with WSL I get a command prompt to enter ...
Thanks for the reply! I was told that I can't install the delegates after I've installed from source? This isn't true? So I download: https://imagemagick.org/download/delegates/jpegsr9b.zip And then go into the jpegsr9b folder and perform: 1. ./configure --prefix=/opt/jpeg 2. make; make install 3 ...
Why does ImageMagick have a policy of not including all the decode delegates in any installation of ImageMagick? I installed from source but didn't install the decode delegates, so I basically can't use ImageMagick and I can't uninstall it because of dependencies. It seems I'll have to reinstall ...
Okay thanks fmw. I'm curious, what is the rationale behind ImageMagick developers not including all image format delegates with every possible installation source for ImageMagick? Virtually everyone who uses ImageMagick will want to work with jpg format, so I don't understand why it isn't a standard ...
Tx fmw! My software repository on Linux Mint indicates that I have it installed already, so it seems I installed it twice, from the repository and from source:
Should I also remove the version installed from the repository as well?
I installed Imagemagick from source and I didn't install the decode delegates, so it's useless as it won't work with any common image formats. What is the safest way to uninstall it? And if I afterwards install Imagemagick from the Ubuntu repository it will come with all the necessary decoding ...
Is it possible to add a border to the bottom of an image that is 10% the height of the image, and then overlay text on that border that automatically sizes to the height of the border? As of now I've changed -background to none and have to manually create the border and then run this command: magick ...
Those commands work, only I'd prefer a command that automatically sizes the watermark text based on the dimensions of the image You can do that with IM 7. So this code should do that then? magick "$file" -set option:dim "%wx%h" \ \( -background '#000000' -fill white -gravity center -size "%[dim ...
Those commands work, only I'd prefer a command that automatically sizes the watermark text based on the dimensions of the image. In my bash script there's a setting *0.06000". I don't see that incorporated into these commands. export imageheight=$(echo "$(echo "$imagesize" | cut -f2 -d',')*0.06000 ...
Thanks, but this doesn't work. The command hangs and doesn't do anything. There must be spaces after \( and before \) and before ending \. You have not conformed. try magick "$file" -set option:dim "%wx%h" \ \( -background '#000000' -fill white -gravity center -size "%[dim]" caption:"$caption ...
This is the main code: convert -background '#000000' -fill white -gravity center \ -size $(echo $imagewidth)x$(echo $imageheight) caption:"$caption" \ "$file" +swap -gravity south -composite "$file" But I need the command to find the dimensions of the input, so the watermark will be place at the ...