Search found 36 matches

by buchert
2019-07-19T17:40:07-07:00
Forum: Users
Topic: Captioning Images
Replies: 7
Views: 10261

Re: Captioning Images

Tx for your help! I moved the $SHELL command within the script at the end, and when I run the following in a Windows terminal it works!

Code: Select all

wsl /mnt/c/Users/surfacepro/Scripts/imagemagickcaption.sh *.jpg
The thing I was missing was following the bash script command with *.jpg.
by buchert
2019-07-19T15:39:36-07:00
Forum: Users
Topic: Captioning Images
Replies: 7
Views: 10261

Re: Captioning Images

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 identif...
by buchert
2019-07-18T22:25:38-07:00
Forum: Users
Topic: Captioning Images
Replies: 7
Views: 10261

Re: Captioning Images

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 termin...
by buchert
2019-07-18T20:09:20-07:00
Forum: Users
Topic: Captioning Images
Replies: 7
Views: 10261

Captioning Images

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...
by buchert
2019-02-08T13:26:54-07:00
Forum: Users
Topic: No Decode Delegates in Default Installation?
Replies: 3
Views: 5678

Re: No Decode Delegates in Default Installation?

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. l...
by buchert
2019-02-08T13:08:16-07:00
Forum: Users
Topic: No Decode Delegates in Default Installation?
Replies: 3
Views: 5678

No Decode Delegates in Default Installation?

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 Lin...
by buchert
2018-09-18T14:43:24-07:00
Forum: Users
Topic: Uninstall Imagemagick from Source?
Replies: 9
Views: 13250

Re: Uninstall Imagemagick from Source?

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...
by buchert
2018-09-18T13:16:24-07:00
Forum: Users
Topic: Uninstall Imagemagick from Source?
Replies: 9
Views: 13250

Re: Uninstall Imagemagick from Source?

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:

Image



Should I also remove the version installed from the repository as well?
by buchert
2018-09-18T12:09:36-07:00
Forum: Users
Topic: Uninstall Imagemagick from Source?
Replies: 9
Views: 13250

Uninstall Imagemagick from Source?

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 deleg...
by buchert
2016-12-22T05:45:37-07:00
Forum: Users
Topic: Convert Watermark Bash Script to CLI Command
Replies: 22
Views: 26779

Re: Convert Watermark Bash Script to CLI Command

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...
by buchert
2016-12-14T16:39:04-07:00
Forum: Users
Topic: Convert Watermark Bash Script to CLI Command
Replies: 22
Views: 26779

Re: Convert Watermark Bash Script to CLI Command

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 cen...
by buchert
2016-12-14T10:00:51-07:00
Forum: Users
Topic: Convert Watermark Bash Script to CLI Command
Replies: 22
Views: 26779

Re: Convert Watermark Bash Script to CLI Command

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 ...
by buchert
2016-12-13T02:12:38-07:00
Forum: Users
Topic: Convert Watermark Bash Script to CLI Command
Replies: 22
Views: 26779

Re: Convert Watermark Bash Script to CLI Command

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]&...
by buchert
2016-12-12T11:21:06-07:00
Forum: Users
Topic: Convert Watermark Bash Script to CLI Command
Replies: 22
Views: 26779

Re: Convert Watermark Bash Script to CLI Command

I have ImageMagick 7.0.3-7 Q16 x64 installed: magick -version Version: ImageMagick 7.0.3-7 Q16 x64 2016-11-15 http://www.imagemagick.org Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Visual C++: 180040629 Features: Cipher DPC Modules...
by buchert
2016-12-07T12:19:04-07:00
Forum: Users
Topic: Convert Watermark Bash Script to CLI Command
Replies: 22
Views: 26779

Re: Convert Watermark Bash Script to CLI Command

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 wate...