Search found 701 matches

by GeeMack
2019-05-21T20:23:17-07:00
Forum: Users
Topic: Annotate is repeating on every image.
Replies: 3
Views: 1610

Re: Annotate is repeating on every image.

The blocks are white (FFFFFF) for example, in reality, I'll use different colors, but for simplicity, I'm using FFFFFF here. I need the first and second block to only print 1 and 2 respectively without having other numbers written on top. When using "-annotate" you can include FX expressions within...
by GeeMack
2019-05-20T14:52:54-07:00
Forum: Users
Topic: PNG file manipulation
Replies: 7
Views: 2202

Re: PNG file manipulation

montage sucks because it requires I have 9 identical files in the working directory, so my script generates them and then deletes them after the montage command. The other solutions offered above are good. Here's another pretty simple idea to make a 3x3 tiled result from a single input image... con...
by GeeMack
2019-05-17T16:59:18-07:00
Forum: Users
Topic: Removing All Shades of Grey from an Image
Replies: 20
Views: 4963

Re: Removing All Shades of Grey from an Image

snibgo wrote:
2019-05-17T16:31:43-07:00
We can make it slightly faster (and use less memory) by separating just the CMY channels, rather then separating them all then deleting the K channel:
Thanks. I noticed that and was editing probably as you were replying. :)
by GeeMack
2019-05-17T16:01:45-07:00
Forum: Users
Topic: Removing All Shades of Grey from an Image
Replies: 20
Views: 4963

Re: Removing All Shades of Grey from an Image

I've been hitting the google books and am trying to figure out how to remove all shades of grey from an image. (ie preserve all "colors") There are several ways to approach this, and some very good solutions have already been provided. I worked from a slightly different direction. This uses a mask ...
by GeeMack
2019-05-15T21:38:10-07:00
Forum: Users
Topic: -compose Multiply not wroking with RGBA files
Replies: 3
Views: 3384

Re: -compose Multiply not wroking with RGBA files

I was trying to use: magick composite "pattern.png" -compose Multiply "green.png" "mrp3.png" what is wrong for RGB channels, only alpha channel has correct A amount, than I tested if it would work for only grayscale and for only one channel( R ) and it worked, as expected. I'm not sure exactly what...
by GeeMack
2019-05-03T16:16:58-07:00
Forum: Users
Topic: Percent Escapes with Extent
Replies: 6
Views: 1598

Re: Percent Escapes with Extent

Is it possible to use percent escapes with the -extent option? I would like to swap the width and height of an image, but keep everything else the same. As mentioned, the FX expressions are most versatile using IM7, but it can be done with IM6 using "-distort" and setting a viewport. Try this... co...
by GeeMack
2019-04-30T12:10:10-07:00
Forum: Users
Topic: how i could combine this two command into one ?
Replies: 2
Views: 1135

Re: how i could combine this two command into one ?

im trying to combine this two command into one but i dont know for generate one image instead of two image result convert fragresultc.png -fill white +opaque "$zv" -negate resuxxlt.png convert image2.png -mask resuxxlt.png -fill white +opaque white +mask rose_blue.png At the place in the command wh...
by GeeMack
2019-04-29T10:09:59-07:00
Forum: Users
Topic: Resize TIF
Replies: 6
Views: 1893

Re: Resize TIF

There are many tools . You're probably trying to: magick convert source_filename.tif -resize 27071x18702! new_filename.tif Unless there is a specific need to emulate the behavior of IM version 6 you should not use "magick convert". Just use "magick" for IM version 7 to take advantage of the improve...
by GeeMack
2019-04-11T07:49:19-07:00
Forum: Users
Topic: How to get image's info through the starting the app?
Replies: 2
Views: 2386

Re: How to get image's info through the starting the app?

But now I have to get an information about image to the info.txt. I am trying to write something like this: start C:\ImageMagick\magick.exe -format "%wx%h" >d:\info.txt d:\Image.jpg The file d:\info.txt is overwritten, but there is no data. With IM version 7 you need to put the input image near the...
by GeeMack
2019-04-10T21:15:16-07:00
Forum: Users
Topic: Rule of thumb: When to use +repage?
Replies: 7
Views: 3295

Re: Rule of thumb: When to use +repage?

Typically you might need +repage for commands that change the image size, such as rotation, distortion, and especially crop and trim. I do not think resize needs it. At least I have never needed it for that kind of operation. Also -layers merge needs it. I also usually do a "+repage" after "-append...
by GeeMack
2019-04-09T07:25:22-07:00
Forum: Users
Topic: How to crop by aspect ratio?
Replies: 4
Views: 2617

Re: How to crop by aspect ratio?

Landscape: 1.91:1 Portrait: 4:5 Can I tell IM to crop only if the image is beyond these aspect ratios? You should always include the version of IM you're using and which platform you're running it on. With most recent versions you can crop to a particular aspect ratio using "-extent" like this... m...
by GeeMack
2019-04-08T22:46:34-07:00
Forum: Users
Topic: [solved] Reverse polar coordinates?
Replies: 8
Views: 3528

Re: Reverse polar coordinates?

Just curious if anyone knows if there is a straight forward way of flipping that? So the sky is on the inside and the land on the outside? Rotate the image 180 degrees before the "-distort arc". Then you rotate it back the other way by adding a second argument to the "-distort arc" operation. ... -...
by GeeMack
2019-04-03T12:42:58-07:00
Forum: Bugs
Topic: IM 7.0.8-36 "-virtual-pixel mirror" broken
Replies: 2
Views: 2176

IM 7.0.8-36 "-virtual-pixel mirror" broken

ImageMagick 7.0.8-36 Q16 x64 HDRI on Windows 10. This command produces no output image, no warnings, and no errors... magick wizard: -virtual-pixel mirror ^ -distort affine "0,640 0,640 480,640 480,640 0,0 480,0" wizard.png Changing the virtual-pixel setting to anything other than "mirror" produces ...
by GeeMack
2019-03-31T11:53:27-07:00
Forum: Users
Topic: Trim whitespace from top and bottom of image and distort
Replies: 3
Views: 1760

Re: Trim whitespace from top and bottom of image and distort

convert original.png +repage -crop 1x -trim -resize 1x256\! out.png montage out-*.png -geometry 1x -tile x1 montage.png Seems to be working ok, but I have a bunch of odd artefacts at regular intervals through the image. Can't work out whether this is a problem with the montaging or the cropping! I ...
by GeeMack
2019-03-22T13:25:01-07:00
Forum: Users
Topic: Adding a margin of repeated pixels around edges of image
Replies: 4
Views: 1808

Re: Adding a margin of repeated pixels around edges of image

The image is 4054 pixels wide/high and want to resize to 4096, with the edges filled in with the repeating pixels. I think I found the key at: http://www.imagemagick.org/discourse-server/viewtopic.php?t=34525 I'm just not quite sure how to apply that to my use case just yet. I'm guessing this would...