Search found 735 matches

by GeeMack
2020-01-28T10:36:28-07:00
Forum: Users
Topic: Two-tone text
Replies: 3
Views: 125

Re: Two-tone text

There are several methods to get this result with ImageMagick. To get the best answers you need to provide your IM version and let us know which shell/OS you're using. Without more information, here are a couple simple ideas... This first command creates two labels with the same text, one white on b...
by GeeMack
2020-01-25T16:55:01-07:00
Forum: Users
Topic: Trying to colourise or combine through an alpha (mask)
Replies: 4
Views: 159

Re: Trying to colourise or combine through an alpha (mask)

I want to make pixels red where the white alpha pixels are. The command in snibgo 's reply is an excellent simple approach. Here are a couple other ideas to consider.... First, if your masked area is always a rectangle, you could use "-region" instead of a mask image to specify an area. Then you'd ...
by GeeMack
2020-01-18T20:21:01-07:00
Forum: Users
Topic: [CLI] evaluate-sequence + fx without clamping?
Replies: 4
Views: 402

Re: [CLI] evaluate-sequence + fx without clamping?

Is there a way to do it without clamping? ... If not, any other way to do that? There are several ways to do this with IM. The "-compose mathematics" method snibgo described is probably the fastest. You can also get around that clipping issue by compressing the levels of one image to the range of 0...
by GeeMack
2020-01-16T17:40:47-07:00
Forum: Users
Topic: Copy area from infile to outfile
Replies: 6
Views: 512

Re: Copy area from infile to outfile

In the 64x64 infile there are areas that stand for the limbs, the body or the head and they need to go to the areas in the 16x32 outfile of the same colour, while the background needs to be transparent. While I would be happy to have such a script ready, I'd be even more happy if I understood how t...
by GeeMack
2020-01-12T17:50:18-07:00
Forum: Users
Topic: FavIcon generation
Replies: 12
Views: 1061

Re: FavIcon generation

How to compress all icons inside the .ICO file? With ImageMagick you can easily convert a single square image to an icon containing several sizes. At it's simplest this IMv6 command should create an example... convert logo: -shave 80x0 -define icon:auto-resize="256,128,64,32,16" imicon.ico Use any ...
by GeeMack
2019-12-16T12:44:56-07:00
Forum: Users
Topic: -geometry widthxheight<
Replies: 13
Views: 3075

Re: -geometry widthxheight<

With -extent it's still 200x400 pixels -- as one could have expected, as -extent doesn't car for the aspect ratio. If you use a single argument and specify the output dimensions of "-extent" as a percent instead of a number of pixels, it will maintain the input's aspect ratio. You're using IMv7, so...
by GeeMack
2019-12-10T10:42:51-07:00
Forum: Users
Topic: Blur the center of the image
Replies: 8
Views: 2201

Re: Blur the center of the image

And is there a way to do the same blur only with a given circular area? Very nearly the same as snibgo 's method, but instead of using "-compose ... -composite", you can create a mask and use it with "-write-mask" to define the area that gets affected by the blur operation. Here's an example comman...
by GeeMack
2019-12-09T22:56:53-07:00
Forum: Bugs
Topic: Using IM v6 and v7 with "-set option:distort:scale"
Replies: 4
Views: 1424

Using IM v6 and v7 with "-set option:distort:scale"

Trying to use "-set option:distort:scale" with no-op "-distort" to scale several images in various parts of a command. I've run into a discrepancy between IM v6 and IM v7. First, to describe my desired result, here's a simplified command using IM 6.9.10-78 on Windows 10 or IM 6.8.9-9 on bash... conv...
by GeeMack
2019-12-01T15:45:31-07:00
Forum: Bugs
Topic: [Resolved]-annotate silently fails on some images
Replies: 4
Views: 1697

Re: -annotate silently fails on some images

Substituting an image in place of the xc: canvas results in the appearance of text for most images. However, for some images, no text appears. I suspect some of your input images contain some page geometry, and that makes your "-annotate" place the text outside the visible canvas. Try adding "+repa...
by GeeMack
2019-11-27T11:38:25-07:00
Forum: Users
Topic: Scale image with transparent background but convert background to black
Replies: 19
Views: 4930

Re: Scale image with transparent background but convert background to black

... any side effects will cause to have this? That shouldn't affect anything else in most simple commands. If you use more complicated commands there are times you might need to set the background color to one thing, and later in the command set it to something else. Just make sure you do that ahea...
by GeeMack
2019-11-26T19:38:14-07:00
Forum: Users
Topic: Scale image with transparent background but convert background to black
Replies: 19
Views: 4930

Re: Scale image with transparent background but convert background to black

We are using scale image command, but for some specific image which background is transparent, it will set the background to black after scale command, could you help me why this happened? I've had a few PNG images with backgrounds that went from transparent to black when converting. You should be ...
by GeeMack
2019-11-24T08:03:19-07:00
Forum: Users
Topic: SOLVED - IM6 to IM7: now my images are grey?
Replies: 2
Views: 2026

Re: IM6 to IM7: now my images are grey?

I'm almost positive this is due to my use of transparency via '-background none'. Does anyone know how to fix this? Thank you. When compositing images, the general behavior in more recent versions of IM is to apply the properties of the destination image to the finished result. In this case the des...
by GeeMack
2019-11-15T12:25:59-07:00
Forum: Bugs
Topic: possible bug IM 7.0.9.2 -set option:distort:viewport not centering properly
Replies: 2
Views: 2503

Re: possible bug IM 7.0.9.2 -set option:distort:viewport not centering properly

I get the same incorrect result using ImageMagick 7.0.9-3 Q16 x64 HDRI on Windows 10.

It also generates the same incorrect result when using "s.w" and "s.h" instead of "u[t].w" and "u[t].h".
by GeeMack
2019-11-09T08:46:40-07:00
Forum: Users
Topic: Cropping an image with %
Replies: 5
Views: 2379

Re: Cropping an image with %

I need to crop the image maintaining the area inside the red rectangle using % via command line. You can specify the dimensions of a "-crop" as percentages of the input image, but the "-crop" operator won't let you specify the offsets as percentages. You can work around that by using "-distort" whi...
by GeeMack
2019-11-07T11:32:18-07:00
Forum: Bugs
Topic: Problem with "gradient:" in v7.0.9-0
Replies: 2
Views: 2900

Re: Problem with "gradient:" in v7.0.9-0

Using ImageMagick 7.0.9-2 Q16 x64 HDRI on Windows 10, this issue appears to be resolved.