Search found 738 matches

by GeeMack
2020-02-12T11:12:58-07:00
Forum: Users
Topic: [SOLVED] Cut along path, fill background
Replies: 3
Views: 173

Re: [HELP!] Cut along path, fill background

I have a JPG image which contains a path and would like to cut along the path, fill the background with #ff6 and then multiply it with the original image to match the shadow. Edited – Thu Feb 13 01:37:57 UTC 2020 – I posted a workable solution here several hours ago, but have since come up with a m...
by GeeMack
2020-02-12T09:33:37-07:00
Forum: Users
Topic: Appending a group of images
Replies: 4
Views: 175

Re: Appending a group of images

In a folder of 100 images, I want to append 5 images per JPG file. So, it would be 20 files of 5 appended images. If your available memory can handle reading in all the images in one command, and if all the images are the same height, something like this should do what you describe... convert *.jpg...
by GeeMack
2020-01-31T13:07:04-07:00
Forum: Users
Topic: whiteboard unique keyframes
Replies: 6
Views: 526

Re: whiteboard unique keyframes

Also is there a way to crop the whiteboard region (large white rectangle)? If the location of the whiteboard is constant, you can even stretch the entire whiteboard to fill the frame from corner to corner with an ImageMagick command like this... convert board.png -distort perspective "55,74 0,0 943...
by GeeMack
2020-01-28T10:36:28-07:00
Forum: Users
Topic: Two-tone text
Replies: 3
Views: 525

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: 631

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: 1013

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: 1169

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: 1708

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: 3510

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: 2454

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: 1713

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: 1988

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: 5585

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: 5585

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: 2166

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