Search found 713 matches

by GeeMack
2019-05-17T16:01:45-07:00
Forum: Users
Topic: Removing All Shades of Grey from an Image
Replies: 20
Views: 6839

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

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

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

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

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

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

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

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

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

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

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

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...
by GeeMack
2019-03-22T12:34:53-07:00
Forum: Users
Topic: Vertical text on the right side.. I do not understand how?
Replies: 2
Views: 1677

Re: Vertical text on the right side.. I do not understand how?

In the picture on the left side, the text is obtained using the command: convert input.jpg -set option:my:left_edge '0,%[fx:h/2]' \ \( -font '/var/www/photos/fonts/10051.ttf' -pointsize 50 -background none label:'Long Long Text Here' \ +distort SRT '%[fx:w/2],%h 1 90 %[my:left_edge]' \ \) -flatten ...
by GeeMack
2019-03-07T15:03:41-07:00
Forum: Users
Topic: Get image background color and create a new image
Replies: 13
Views: 4259

Re: Get image background color and create a new image

sabyamon wrote:
2019-03-07T15:02:02-07:00
I am getting this when I run this my terminal.
convert original.png -set option:distort:viewport %[w]x%[h] -resize 1x1 -distort SRT 0 otter.png
zsh: no matches found: %[w]x%[h]
You might have to put quotes around the "%[w]x%[h]". I only tested it on Windows.
by GeeMack
2019-03-07T14:58:34-07:00
Forum: Users
Topic: Get image background color and create a new image
Replies: 13
Views: 4259

Re: Get image background color and create a new image

For now, I can deal with passing the image dimension as a parameter to the command. You can use the image dimensions in a single command with IM6 using a command like this... convert input.png -set option:distort:viewport %[w]x%[h] -resize 1x1 -distort SRT 0 out.png That will output an image the sa...