Search found 629 matches

by GeeMack
2018-10-18T10:53:25-07:00
Forum: Users
Topic: Making semi-transparent white pixels in an image all a single color
Replies: 4
Views: 75

Re: Making semi-transparent white pixels in an image all a single color

I would like to make the figures on the images (which are currently semi-transparent) be totally opaque, and go from the greyish color they are to being totally white (#ffffff). How would I go about this using convert? All of the images also have these different amounts of alpha on the figures, so ...
by GeeMack
2018-10-16T16:59:29-07:00
Forum: Bugs
Topic: Problem with "-set option:distort:scale" in IM6 and IM7
Replies: 2
Views: 79

Re: Problem with "-set option:distort:scale" in IM6 and IM7

snibgo wrote:
2018-10-16T16:52:14-07:00
distort.c has an explicit test for values less than 0.1, throwing an error:
Thanks for looking it over. I'll make sure to use other methods in cases where it might be an issue.
by GeeMack
2018-10-16T16:41:44-07:00
Forum: Bugs
Topic: Problem with "-set option:distort:scale" in IM6 and IM7
Replies: 2
Views: 79

Problem with "-set option:distort:scale" in IM6 and IM7

Using ImageMagick 7.0.8-12 Q16 x64 HDRI (and ImageMagick 6.9.10-11 Q16 x64 HDRI) on Windows, trying to set a scaling factor as described at THIS link . I enter these three commands, and the third one results in an error... magick logo: -set option:distort:scale 0.11 -distort SRT 0 test.png magick lo...
by GeeMack
2018-10-16T14:20:26-07:00
Forum: Users
Topic: Watermarking images with proportional watermark
Replies: 4
Views: 110

Re: Watermarking images with proportional watermark

Anyone able to help here? Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-07-31 - Linux Inline FX expressions like "%[fx:w+h]" work almost everywhere in IM7 commands, but they only work properly in a few IM6 operations. Fortunately you can use FX expressions in IM6 with the "+distort" operator, which ...
by GeeMack
2018-10-14T14:52:51-07:00
Forum: Users
Topic: Running batch file only on images recently modified
Replies: 4
Views: 173

Re: Running batch file only on images recently modified

I run a batch script to modify images in folders and subfolders in windows. It works great, but it runs imagemagick for every single image in the folders. Is there a way to limit the files that are modified to a time period eg. a week from date modified? As the others have mentioned, you'll probabl...
by GeeMack
2018-10-09T09:26:10-07:00
Forum: Users
Topic: changing the whole color of a png icon preserving the edges alpha
Replies: 16
Views: 824

Re: changing the whole color of a png icon preserving the edges alpha

I have another question. In above command how can I fill with gradient instead of solid color and again with preserving alpha? You can use "-sparse-color" to add a gradient fill to the red, green, and blue channels of the input image while keeping the transparency of the alpha channel. A simple exa...
by GeeMack
2018-10-08T12:14:46-07:00
Forum: Users
Topic: changing the whole color of a png icon preserving the edges alpha
Replies: 16
Views: 824

Re: changing the whole color of a png icon preserving the edges alpha

artech wrote:
2018-10-08T11:32:33-07:00
Again the result was the same. It fills the whole of image to that color like following:
Try the same thing only instead of "-alpha off" just work it with the RGB channels like this...

Code: Select all

magick icon.png -channel RGB -fuzz 50% -fill "#550000" -opaque "#000000" -alpha on icon2.png
by GeeMack
2018-10-08T08:46:40-07:00
Forum: Users
Topic: Batch Edit
Replies: 5
Views: 385

Re: Batch Edit

I am trying to batch edit my files and save them as their original names using the code: magick convert *.tif -colorspace gray -threshold 50% -compress Group4 -set filename:f %t "%[filename:f].tif" But, they are all saved under the first tif name as almost a pdf, with all of the image combined into...
by GeeMack
2018-10-05T12:25:15-07:00
Forum: Users
Topic: How to build this effect in Image Magick?
Replies: 10
Views: 632

Re: How to build this effect in Image Magick?

Yes 1/3, 1/3 , 1/3 would be good I think so. If you could give me the command I can adapt it in case I would like to change the proportions. In the example commands above there's a section inside parentheses. That's where you're creating the mask for the gradient overlay. You can use FX expressions...
by GeeMack
2018-10-05T08:01:06-07:00
Forum: Users
Topic: How to build this effect in Image Magick?
Replies: 10
Views: 632

Re: How to build this effect in Image Magick?

I am on IM7 on OSx: convert --version Version: ImageMagick 7.0.8-11 Q16 x86_64 2018-09-08 https://www.imagemagick.org The command that you gave me does not work, I suppose it's related to IM7? If you're using IM7 you should be using the command "magick" instead of "convert". This command is nearly ...
by GeeMack
2018-09-28T08:43:51-07:00
Forum: Users
Topic: How to Uncompress
Replies: 2
Views: 275

Re: How to Uncompress

digcollib wrote:
2018-09-28T08:29:54-07:00
Any tips on what this is or why it is happening?
You need to end your command with the name of the output file you're writing to.
by GeeMack
2018-09-27T19:15:23-07:00
Forum: Users
Topic: Conditional -negate pdf file
Replies: 18
Views: 941

Re: Conditional -negate pdf file

That does it. Thanks very much for all your help. Keep in mind when using FX expressions directly within an operation like... ... -level "%[fx:mean<0.5?100:0] ... ... it will run that expression separately on every image in the list, or on each page of the PDF. But if you set that variable before t...
by GeeMack
2018-09-27T10:46:03-07:00
Forum: Users
Topic: Conditional -negate pdf file
Replies: 18
Views: 941

Re: Conditional -negate pdf file

One last issue - the level command seems to cause a problem with the anti-aliasing. I noticed the output pdf has reduced image dimensions and file size. Not sure why? When IM reads in a PDF it defaults to a density of 72. Try setting the density before reading the input file, maybe 150 or 300. magi...
by GeeMack
2018-09-27T07:28:26-07:00
Forum: Users
Topic: Conditional -negate pdf file
Replies: 18
Views: 941

Re: Conditional -negate pdf file

I wondered if I could store the mean at the start somehow, I tried: magick input.pdf -channel RGB -set option:mw "%%[mean]" -level "%%[fx:mw<0.5?100:0]%% -white-threshold "%%[fx:mw<0.5?85:100]%%" output.pdf IM won't let you set a variable like that and use it inside another FX expression, but you c...
by GeeMack
2018-09-26T20:21:12-07:00
Forum: Users
Topic: Conditional -negate pdf file
Replies: 18
Views: 941

Re: Conditional -negate pdf file

I'm getting an error: convert: invalid argument for option '-level': %[fx:mean<0.5?100:0]% @ error/convert.c/ConvertImageCommand/2003. Try using just "magick" instead of "magick convert". When you add "convert" to the command it will take on IM6 behavior. You need it to act like IM7 to make those i...