Search found 23994 matches

by fmw42
2018-11-13T19:06:12-07:00
Forum: Users
Topic: Rotation per default not around center but NorthEast corner of image
Replies: 7
Views: 106

Re: Rotation per default not around center but NorthEast corner of image

The geometry offset you are using moves the top left corner of the rotated image after its background has been added and not the top left corner of the Input where it gets rotated. So that is why you are not getting the right result. You would be better using -gravity center and figuring out where t...
by fmw42
2018-11-13T10:31:21-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 329

Re: Can't convert image file using a bash script

This works on my Mac: ${1%.*}

This does not work on my Mac: ${1::-4}

Unfortunately, Apple provides only older versions of bash on my 2014 Mac Mini. My bash is 3.2.57
by fmw42
2018-11-12T18:58:19-07:00
Forum: Users
Topic: Defaults or how to find MAGICK_TEMPORARY_PATH
Replies: 10
Views: 201

Re: Defaults or how to find MAGICK_TEMPORARY_PATH

If in Unix and you put MAGICK_TEMPORARY_PATH in your .profile or .bash_profile, then you can cat your profile file and parse for MAGICK_TEMPORARY_PATH. I do not know windows, so cannot help on that end.
by fmw42
2018-11-12T17:31:22-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 329

Re: Can't convert image file using a bash script

Try using var and $var rather than VAR and $VAR. Perhaps your Unix thinks all cap variables are environment variables or bash reserved variables. Does that make a difference?
by fmw42
2018-11-12T17:27:54-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 329

Re: Can't convert image file using a bash script

snibgo, perhaps different Unix systems have trouble with the ${1::-4} syntax. It does not work in a bash script on my Mac and give an error as I mentioned above. In my Mac terminal, the two command lines when pasted work without error, but nothing is added for the ${1::-4}.
by fmw42
2018-11-12T13:36:12-07:00
Forum: Users
Topic: Please help with the batch file
Replies: 15
Views: 211

Re: Please help with the batch file

Sorry, I am not a Windows user. But about sharpening. -sharpen RadiusxSigma or -sharpen 0x2 for example with sharpen with a Gaussian function whose sigma=2 (standard deviation). The larger the sigma the more sharpening. The radius=0 means for the function to find the optimum radius or window size fo...
by fmw42
2018-11-11T23:24:27-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 329

Re: Can't convert image file using a bash script

That is odd. Normally, one would put quotes about the hex value xc:'#XXXXXX'. But I think that is not necessary when in the string variable you craated ($VAR), since it worked fine for me. An alternate for xc: is canvas: To get the name of the image for prefixing the output, you can create a new var...
by fmw42
2018-11-11T20:08:32-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 329

Re: Can't convert image file using a bash script

What are your $1 and $2 argument values? On my Mac, I can run your two commands as: VAR=$(convert lena.jpg -colors 256 -depth 8 -format "%c" histogram:info: | sort -r -k 1 | head -n 16 | grep -o -E "\#.{0,6}" | sed "s/#/xc:#/g" | sed ':a;N;$!ba;s/\n/ /g') convert -size 60X60 $VAR +append ${1::-4}pal...
by fmw42
2018-11-11T12:28:04-07:00
Forum: Users
Topic: How to convert HEIF image format to JPEG on Mac
Replies: 1
Views: 81

Re: How to convert HEIF image format to JPEG on Mac

What is your ImageMagick version? Current version can read HEIF and convert to JPG, but you need to install libheif. See https://github.com/strukturag/libheif
by fmw42
2018-11-11T12:26:10-07:00
Forum: Users
Topic: Convert SVG to PNG with text
Replies: 10
Views: 218

Re: Convert SVG to PNG with text

Glad you got it installed. Did you install Inkscape or RSVG to fix your issue?
by fmw42
2018-11-10T14:16:22-07:00
Forum: Users
Topic: Convert SVG to PNG with text
Replies: 10
Views: 218

Re: Convert SVG to PNG with text

I met some issues while trying install the latest version of ImageMagick, please help me in this topic https://imagemagick.org/discourse-server/viewtopic.php?f=1&t=35018 , thank you Fred 😞😞😞 Sorry, I do not know about installing on Debian. I use a Mac and install from MacPorts. You will have to wai...
by fmw42
2018-11-09T14:21:46-07:00
Forum: Users
Topic: Reducing Alpha during multiply
Replies: 11
Views: 201

Re: Reducing Alpha during multiply

If your image already has transparency, then -evaluate set will make it all that value. So you need to reduce the existing opacity/transparency by mutiplication. try for 50% reduction, multiply by 0.5 -delete 0 ( -clone 0 ( C1_L5_017.png -alpha on -channel a -evaluate multiply 0.5 +channel ) -compos...
by fmw42
2018-11-09T14:19:10-07:00
Forum: Users
Topic: Convert SVG to PNG with text
Replies: 10
Views: 218

Re: Convert SVG to PNG with text

You are using the Imagemagick XML internal MSVG renderer, which did not show the text for me on the current IM 6. So your best bet would be to install Inkscape or if you cannot use that, then install the RSVG delegate (librsvg)
by fmw42
2018-11-09T13:22:26-07:00
Forum: Users
Topic: Reducing Alpha during multiply
Replies: 11
Views: 201

Re: Reducing Alpha during multiply

try putting your processing after the reading the image you want it to be applied.

Code: Select all

-delete 0 ( -clone 0 ( C1_L5_017.png -alpha on -channel a -evaluate set 50% ) -compose multiply -composite )
by fmw42
2018-11-09T13:16:24-07:00
Forum: Users
Topic: Reducing Alpha during multiply
Replies: 11
Views: 201

Re: Reducing Alpha during multiply

-delete 0 ( -clone 0 ( -alpha on -channel a -evaluate set 50% C1_L5_017.png ) -compose multiply -composite )
To which image do you want to apply the reduced alpha -- the -clone 0 or the C1_L5_017.png