Search found 43 matches

by tom_dl
2018-07-14T06:09:54-07:00
Forum: Users
Topic: Converting to cielab with a specified illuminant
Replies: 14
Views: 17099

Re: Converting to cielab with a specified illuminant

Although >2yrs after the initial post, I should report that the color-matrix solution (through XYZ space) yields the correct results. The following command works: magick in.tif -colorspace xyz -color-matrix \ "1.0478112 0.0228866 -0.0501270 0.0295424 0.9904844 -0.0170491 -0.0092345 0.0150436 0 ...
by tom_dl
2017-11-14T04:47:47-07:00
Forum: Magick.NET
Topic: Equivalent of distort:viewport=WxH+X+Y
Replies: 4
Views: 20310

Re: Equivalent of distort:viewport=WxH+X+Y

That's awesome. Thanks for doing the work!
by tom_dl
2017-11-07T12:19:55-07:00
Forum: Magick.NET
Topic: Equivalent of distort:viewport=WxH+X+Y
Replies: 4
Views: 20310

Equivalent of distort:viewport=WxH+X+Y

Magick.NET version 7.0.7.700-Q16-x64 I'm distorting an image with MagickImage.Distort(ImageMagick.DistortMethod, double[]) which is working fine, except I can't work out how to apply distort "options" like the following CLI versions: -set distort:viewport=WxH+X+Y or -set distort:scale=value What am ...
by tom_dl
2017-11-02T15:02:02-07:00
Forum: Magick.NET
Topic: Coordinate type for List used with DrawablePolygon
Replies: 2
Views: 11719

Re: Coordinate type for List used with DrawablePolygon

...that would explain a lot! Thanks for your quick reply.
by tom_dl
2017-11-02T07:31:15-07:00
Forum: Magick.NET
Topic: Coordinate type for List used with DrawablePolygon
Replies: 2
Views: 11719

Coordinate type for List used with DrawablePolygon

Magick.NET version 7.0.7.700-Q16-x64 I'm trying to draw a polygon on my image. Apparently this needs a list of coordinates. I've found this code online: List<Coordinate> coordinates = new List<Coordinate>(); coordinates.Add(new Coordinate(0, 0)); coordinates.Add(new Coordinate(500, 100 ...
by tom_dl
2017-10-26T10:02:17-07:00
Forum: Users
Topic: extent vs define distort:viewport
Replies: 4
Views: 5684

Re: extent vs define distort:viewport

Thanks for your reply! nb the last part of my post: This example works with a jpeg made like this: convert -size 3648x5472 xc:red input.jpg Thanks for your advice on making the image black. I got the idea from the ImageMagick Usage page: http://www.imagemagick.org/Usage/canvas/#other The advice ...
by tom_dl
2017-10-26T09:36:37-07:00
Forum: Users
Topic: extent vs define distort:viewport
Replies: 4
Views: 5684

extent vs define distort:viewport

I'm running Version: ImageMagick 7.0.7-8 Q16 x64 2017-10-14 in Powershell 5.1.15063.674 on Windows 10 64-bit I've noticed strange behaviour when using -extent which I have worked-around using -define distort:viewport. This is the line I use which produces an unwanted result: convert input.jpg ...
by tom_dl
2017-04-06T06:34:27-07:00
Forum: Users
Topic: Composite with drawn mask requires TrueColor
Replies: 4
Views: 5961

Re: Composite with drawn mask requires TrueColor

Thanks for your reply! This TIFF file demonstrates the behaviour: https://www.dropbox.com/s/48ia9nquplfpa2k/0B8A5519.tif?dl=0 I'm using -gamma -1 because http://www.imagemagick.org/Usage/canvas/#color_misc suggested it (it's really fast). Neither of your lines works as intended for me, but adding ...
by tom_dl
2017-04-04T10:22:25-07:00
Forum: Users
Topic: Composite with drawn mask requires TrueColor
Replies: 4
Views: 5961

Composite with drawn mask requires TrueColor

I have used the -composite option with 3 images to make a Masked Alpha Composition in the past like so: convert img1.tif img2.tif mask.tif -composite output.tif But when I draw the mask rather than feed Imagemagick an image, this doesn't give expected results: convert input.tif \( -clone 0 ...
by tom_dl
2016-10-25T09:19:14-07:00
Forum: Users
Topic: Fast method of finding min(R,G,B)
Replies: 4
Views: 5685

Re: Fast method of finding min(R,G,B)

Can't believe I overlooked that! Thanks, that's 1.5x faster on my machine :-)
by tom_dl
2016-10-25T09:08:41-07:00
Forum: Users
Topic: Identifying min-is-black Property Quickly
Replies: 9
Views: 10900

Re: Identifying min-is-black Property Quickly

You could use exiftool rather than Imagemagick for this. Just grep 'Photometric Interpretation' and you'll find the info. This is faster than identify -verbose by 7.7x on my PC.
by tom_dl
2016-10-25T08:01:26-07:00
Forum: Users
Topic: combine serveral commands
Replies: 6
Views: 8201

Re: combine serveral commands

Thanks GeeMack - I hadn't checked the rest of the code. Do note that -composite can take three images if the third is a mask.
by tom_dl
2016-10-25T05:31:56-07:00
Forum: Users
Topic: combine serveral commands
Replies: 6
Views: 8201

Re: combine serveral commands

convert a.png b.png c.png d.png e.png \ \( -clone 0,1 -composite -gravity center -channel RGB -evaluate multiply 0.9 \) \ \( -clone 2,3 -composite -gravity center -channel RGB -evaluate multiply 0.9 \) \ \( -clone 5,6,4 -composite -gravity center \) \ -delete 0-6 output.png Should work. I haven't ...
by tom_dl
2016-10-25T05:18:13-07:00
Forum: Users
Topic: combine serveral commands
Replies: 6
Views: 8201

Re: combine serveral commands

You can load all inputs at the begining like this: convert a.png b.png c.png d.png e.png From now on, these have index numbers 0,1,2,3 respectively. When you want to work on them in parentheses you need to clone the indexes you want to work on. Like this: convert a.png b.png c.png d.png e.png ...