wait, it did work. I ran an old script on accident.
Dang, Fred gets it in one! very nice.
Search found 54 matches
- 2018-07-30T16:23:02-07:00
- Forum: Users
- Topic: using -define png:color-type=2 add grey row to bottom
- Replies: 6
- Views: 7524
- 2018-07-30T16:19:58-07:00
- Forum: Users
- Topic: using -define png:color-type=2 add grey row to bottom
- Replies: 6
- Views: 7524
Re: using -define png:color-type=2 add grey row to bottom
sorry, on windows 10, IM version 7.0.5-Q8
I tried the code above, and it does replace the color with trans, but the final png is Indexed Color.
I tried the code above, and it does replace the color with trans, but the final png is Indexed Color.
- 2018-07-30T15:27:49-07:00
- Forum: Users
- Topic: using -define png:color-type=2 add grey row to bottom
- Replies: 6
- Views: 7524
using -define png:color-type=2 add grey row to bottom
I have a bunch of 16x16 pixel button images, whose "background" color was 192,192,192.
I need to replace that with transparency, and save as RGB png.
The replace is easy using:
(step1)
magick mogrify -fuzz 0%% -transparent "rgb(192,192,192)" "C:\CAD_Support\Menu Images\*.png"
But then many images ...
I need to replace that with transparency, and save as RGB png.
The replace is easy using:
(step1)
magick mogrify -fuzz 0%% -transparent "rgb(192,192,192)" "C:\CAD_Support\Menu Images\*.png"
But then many images ...
- 2018-01-12T16:35:41-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
BIIIINGOOOOOO!
Dang, guess we know why the word "magick" in the name, you pulled that out of a hat like a pro.
Unbelievable, good catch.
You have a paypal name? or email me at jmaeding **at** hunsaker **dot** com with location to send check if you prefer.
Or amazon gift card, you name it.
Well ...
Dang, guess we know why the word "magick" in the name, you pulled that out of a hat like a pro.
Unbelievable, good catch.
You have a paypal name? or email me at jmaeding **at** hunsaker **dot** com with location to send check if you prefer.
Or amazon gift card, you name it.
Well ...
- 2018-01-12T16:16:55-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
Its from the install folder of IM.
You can grab a copy I posted here:
https://dn.hunsaker.com/?linkid=KZi4zr6 ... VD1e2/2KDA
You can grab a copy I posted here:
https://dn.hunsaker.com/?linkid=KZi4zr6 ... VD1e2/2KDA
- 2018-01-12T14:51:13-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
BTW Fred, we get this working and I will paypal you $100. You have already gone way above the calling!
- 2018-01-12T14:35:58-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
I actually do have all the coordinates, I just meant I want to use the original image corners for the distort.
I am actually doing what your approach says, something is going wrong if more than two images are merged though.
Look at this, I merge 2 with this code:
"magick.exe" ^
( "logo.jpg" ( -size ...
I am actually doing what your approach says, something is going wrong if more than two images are merged though.
Look at this, I merge 2 with this code:
"magick.exe" ^
( "logo.jpg" ( -size ...
- 2018-01-12T11:35:50-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
well, the problem with that is I know where the images get placed based on corners of the untrimmed image.
That is why I don't want to modify the size of the originals, just mask out pixels outside my polygons.
I reread what the meaning of "+distort tries to fit..." meant, and think it does what I ...
That is why I don't want to modify the size of the originals, just mask out pixels outside my polygons.
I reread what the meaning of "+distort tries to fit..." meant, and think it does what I ...
- 2018-01-11T17:38:54-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
Here is a real situation with several maps I want to stitch. I am zoomed out a bit but these are not square to eachother, and the clips are not simple rectangles but may have 6 or more points involved.
https://s13.postimg.org/41o8oc7s7/ex2.jpg
I'd think if I can figure out how to add images to ...
https://s13.postimg.org/41o8oc7s7/ex2.jpg
I'd think if I can figure out how to add images to ...
- 2018-01-11T17:32:25-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
Lets try this.

On the lower image with all rotated stuff, the final image would be a rectangle of course. Any extra area added would be white.
Does that help a bit?
thx

On the lower image with all rotated stuff, the final image would be a rectangle of course. Any extra area added would be white.
Does that help a bit?
thx
- 2018-01-11T17:01:17-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
will do. I agree this is nuts without pics.
- 2018-01-11T16:20:46-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
I would love to post pics, but have to relearn how to add them to this forum.
I think the simplest way to explain what I want is I have 4 images that I know their unclipped locations, as well as the clipping polygon coords.
I want to clip them and then composite to one image.
They must end up ...
I think the simplest way to explain what I want is I have 4 images that I know their unclipped locations, as well as the clipping polygon coords.
I want to clip them and then composite to one image.
They must end up ...
- 2018-01-11T15:29:34-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
The more I study and test, the more I think I am doing it correct.
I did a test to just tile unclipped images, worked perfect:
"magick.exe" ^
"logo.jpg" ^
( "logo.jpg" -alpha set -virtual-pixel transparent +distort affine "0,0 -123,0 0,118 -123,118" ) ^
( "logo.jpg" -alpha set -virtual-pixel ...
I did a test to just tile unclipped images, worked perfect:
"magick.exe" ^
"logo.jpg" ^
( "logo.jpg" -alpha set -virtual-pixel transparent +distort affine "0,0 -123,0 0,118 -123,118" ) ^
( "logo.jpg" -alpha set -virtual-pixel ...
- 2018-01-11T14:04:24-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
oh, I see the problem. I thought +distort meant "expand virtual canvas as needed", but that is incorrect.
Instead +distort tries to fit things somehow. From the IM web page:
"The other form of the operator, "+distort" (Added to IM v6.3.5-7), will attempt resize the distorted image so it will ...
Instead +distort tries to fit things somehow. From the IM web page:
"The other form of the operator, "+distort" (Added to IM v6.3.5-7), will attempt resize the distorted image so it will ...
- 2018-01-11T13:01:13-07:00
- Forum: Users
- Topic: Trim images with polygon and combine
- Replies: 27
- Views: 24773
Re: Trim images with polygon and combine
I see what you are doing with the mpr:, but not +25+25. Why would you do that in this situation?
I would think you might only reset the 0,0 of canvas if expanding it in negative directions, but you did positive.
I made some progress on my previous tests. I realized my trim coords were off, so fixed ...
I would think you might only reset the 0,0 of canvas if expanding it in negative directions, but you did positive.
I made some progress on my previous tests. I realized my trim coords were off, so fixed ...