That worked! Thank you!
More and more I use this I understand more the sequence of operations...I have read all the "help" and "how to's" listed but until you do it more, it doesnt really make sense.
Thanks again!
Search found 31 matches
- 2015-11-21T09:29:13-07:00
- Forum: Users
- Topic: combining several PNG8 into an image
- Replies: 4
- Views: 2292
- 2015-11-21T08:55:30-07:00
- Forum: Users
- Topic: combining several PNG8 into an image
- Replies: 4
- Views: 2292
Re: combining several PNG8 into an image
If I understand correctly, you have 5 images the same size. Each has some opaque pixels and some transparent. You want an output the same size, that is white where all of the five are transparent, and some other colour (black?) where any of them are opaque. convert in1.png in2.png in3.png in4.png ...
- 2015-11-21T08:13:42-07:00
- Forum: Users
- Topic: combining several PNG8 into an image
- Replies: 4
- Views: 2292
combining several PNG8 into an image
windows 7 Pro (x64) 6.9.2 Q8 I am tryin to (in a windows .CMD script) combine 5 images, all are PNG8 formatted from a previous process... Each image is a single color of R, G or B...I want to bring all of them into a new image and combine them to get an image out that is the UNUSED pixels of this ...
- 2015-11-17T13:28:09-07:00
- Forum: Users
- Topic: Change a single range and the rest black
- Replies: 10
- Views: 3019
Re: Change a single range and the rest black
In the end, this worked: convert ImageIn.png -alpha remove -fuzz 7.5%% -fill black +opaque DarkOliveGreen -fill white -opaque DarkOliveGreen PNG24:ImageOut.png So that very much helped me figure it out...thanks! This gives me an entirely black image except where I had green, and then turns that to ...
- 2015-11-17T13:14:43-07:00
- Forum: Users
- Topic: Change a single range and the rest black
- Replies: 10
- Views: 3019
Re: Change a single range and the rest black
It is Windows...(I had previously edited my post to include that) and I am using command line batch (cmd) files...(yes I remembered to use %% this time ;-) ) Thanks! I am still getting the hang of all that this amazing program can do, but more importantly, HOW to get there... Are you on Windows or ...
- 2015-11-17T12:59:29-07:00
- Forum: Users
- Topic: Change a single range and the rest black
- Replies: 10
- Views: 3019
Re: Change a single range and the rest black
That yields an entirely black image.fmw42 wrote:Code: Select all
convert imageIn.png -alpha off -fuzz 7.5% -fill white -opaque DarkOliveGreen \ -fuzz 0 -fill black +opaque white PNG24:imageOut.png
- 2015-11-17T12:52:34-07:00
- Forum: Users
- Topic: Change a single range and the rest black
- Replies: 10
- Views: 3019
Re: Change a single range and the rest black
Thank you very much!
Absolutely...sorry about that.... 6.9.2-4 Q8 x64 windows 7 Profmw42 wrote:P.S. Please always provide your IM version and platform when asking questions. See viewtopic.php?f=1&t=9620
- 2015-11-17T12:22:30-07:00
- Forum: Users
- Topic: Change a single range and the rest black
- Replies: 10
- Views: 3019
Change a single range and the rest black
I am trying to take an image, make ALL of it black, except for a specific color range (of DarkOliveGreen) but not having luck The image has alpha (PNG alpha, not an actual Alpha channel), which I want to also make go away. convert imageIn.png -fuzz 7.5% -fill white -opaque DarkOliveGreen PNG24 ...
- 2015-10-26T10:04:40-07:00
- Forum: Users
- Topic: Picking a single RED value, and all the G and B (0-255)
- Replies: 38
- Views: 11874
Re: Picking a single RED value, and all the G and B (0-255)
In your cmd/BAT file, you have correctly doubled the % sign in %%x. Why haven't you doubled it in "15%"? Yep...I just found that in another post...I've been tryin to do that research first, but didn't find it until just now: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=28433&p ...
- 2015-10-26T09:49:05-07:00
- Forum: Users
- Topic: Picking a single RED value, and all the G and B (0-255)
- Replies: 38
- Views: 11874
Re: Picking a single RED value, and all the G and B (0-255)
I tried to do something like this with my list of commands, but all the symbols are jacking it up I think:
for %%x in (*.tif) do convert %%x -channel r -separate +channel -fill black -fuzz 15% +opaque "gray(255)" -fill white -opaque "gray(255)" ./roofs/%%x
for %%x in (*.tif) do convert %%x -channel r -separate +channel -fill black -fuzz 15% +opaque "gray(255)" -fill white -opaque "gray(255)" ./roofs/%%x
- 2015-10-26T09:35:43-07:00
- Forum: Users
- Topic: Picking a single RED value, and all the G and B (0-255)
- Replies: 38
- Views: 11874
Re: Picking a single RED value, and all the G and B (0-255)
well...I figured it out, but I am not sure what to do to fix it... If I use a single command like, it does "15%" , if I use it in a string of other commands (other images) in a .cmd file (windows) it sees it as "15" using Beyond Compare, I checked the 2 outputs...1 from direct command line prompt ...
- 2015-10-26T09:34:05-07:00
- Forum: Users
- Topic: Picking a single RED value, and all the G and B (0-255)
- Replies: 38
- Views: 11874
Re: Picking a single RED value, and all the G and B (0-255)
well...I figured it out, but I am not sure what to do to fix it... If I use a single command like, it does "15%" , if I use it in a string of other commands (other images) in a .cmd file (windows) it sees it as "15" using Beyond Compare, I checked the 2 outputs...1 from direct command line prompt ...
- 2015-10-26T08:33:05-07:00
- Forum: Users
- Topic: Picking a single RED value, and all the G and B (0-255)
- Replies: 38
- Views: 11874
Re: Picking a single RED value, and all the G and B (0-255)
Hmm...I used 15% and it did not get the values I expected it to pick up. In this case I wanted to grab the roof polygons of the 3D model...represented in this situation as a value of 255 (out of R=0-255): convert filename.tif -channel r -separate +channel -fill black -fuzz 15% +opaque "gray(255 ...
- 2015-10-18T15:43:03-07:00
- Forum: Users
- Topic: Picking a single RED value, and all the G and B (0-255)
- Replies: 38
- Views: 11874
Re: Picking a single RED value, and all the G and B (0-255)
Ok awesome...and thanks again to both of you...I was waiting to see which one of you was correctfmw42 wrote:Yes, my mistake. User snibgo is correct.
I figured that conversation would happen.
I'm really liking this software....
- 2015-10-18T13:46:43-07:00
- Forum: Users
- Topic: Picking a single RED value, and all the G and B (0-255)
- Replies: 38
- Views: 11874
Re: Picking a single RED value, and all the G and B (0-255)
It is giving you 5% on each side of 132. In this context it is only 5% on each side of red=132 due to the use of -channel r -separate. You must compute the range of values on each side of the center of the range and use the center of the range as the gray value. For example 105% of 132 = 139 and 95 ...