Search found 733 matches

by GeeMack
2020-01-18T20:21:01-07:00
Forum: Users
Topic: [CLI] evaluate-sequence + fx without clamping?
Replies: 4
Views: 139

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

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

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

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

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

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

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

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

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

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

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

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

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.
by GeeMack
2019-10-26T15:14:57-07:00
Forum: Bugs
Topic: Problem with "gradient:" in v7.0.9-0
Replies: 2
Views: 2785

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

Using ImageMagick 7.0.9-0 Q16 x64 HDRI on Windows 10. There appears to be a problem with "gradient:" and "radial-gradient:" when used without specifying any colors. Trying to make a white-black radial gradient with this command... magick -size 100x100 radial-gradient: out.png The image doesn't get c...
by GeeMack
2019-10-23T18:13:24-07:00
Forum: Users
Topic: Create seamless texture
Replies: 13
Views: 3796

Re: Create seamless texture

And what other alternative ways for get anothe seamless texture can be used? Here is a method that also uses a gradient mask like snibgo 's examples above. It should work pretty well with input images that are square and have no transparency. magick square.png -gravity center ^ ( -clone 0,0 +append...