Search found 11214 matches

by snibgo
2019-02-16T10:13:50-07:00
Forum: Users
Topic: Apply shadow to rectangle with alpha
Replies: 3
Views: 67

Re: Apply shadow to rectangle with alpha

You are directly drawing a rectangle on infile.png, and then making a shadow of the result.

Instead, you need to make an image that is the rectangle. Then make a shadow of that, then merge those two images, then composite that over infile.png.
by snibgo
2019-02-16T09:45:28-07:00
Forum: Users
Topic: Converting an HDR10 image
Replies: 5
Views: 109

Re: Converting an HDR10 image

... is there a way to do an... inverse 2084? Yes, and apparently your img_53.jpg has already had that inverse applied. Based on the Wikipedia page I cited, the forwards 2084 transformation is (Windows BAT syntax): set c1=0.8359375 set c2=18.8515625 set c3=18.6875 set m1=0.1593017578125 set m2=78.84...
by snibgo
2019-02-16T08:52:09-07:00
Forum: Users
Topic: Remove background using special markers
Replies: 6
Views: 104

Re: Remove background using special markers

This is like motion capture in the movies: targets are stuck to actors, the camera captures the actions, and computers replace the actors with animated figures. The targets can be something like these (Windows syntax): magick ^ -size 100x100 ^ xc:Black xc:White +append ^ ( +clone -flop ) ^ -append +...
by snibgo
2019-02-16T08:07:09-07:00
Forum: Developers
Topic: How to convert a SVG to a PNG with Image Magick?
Replies: 1
Views: 41

Re: How to convert a SVG to a PNG with Image Magick?

I want to specify the output size in pixels without doing math to calculate the density value. I don't think IM has an option for that, so you need to do the maths. You can do the maths in an FX expression, in a single magick command: read the SVG at a known density (eg 96), then read it again at t...
by snibgo
2019-02-16T07:42:55-07:00
Forum: Users
Topic: Apply shadow to rectangle with alpha
Replies: 3
Views: 67

Re: Apply shadow to rectangle with alpha

Since the rectangle may have alpha, layering the first rectangle over a blurred rectangle would affect the overall color\transparency of the rectangle, right? Yes. You are making an image from three components. From front to back, these are: (1) a semi-transparent rectangle, (2) a semi-transparent ...
by snibgo
2019-02-15T18:38:04-07:00
Forum: Users
Topic: Adjusting 8bit to 'level' and compose properly into 16bit range
Replies: 6
Views: 125

Re: Adjusting 8bit to 'level' and compose properly into 16bit range

If you just want to count them:

Code: Select all

magick toes.png -unique-colors -format %w info:

62206
by snibgo
2019-02-15T10:20:43-07:00
Forum: Users
Topic: Adjusting 8bit to 'level' and compose properly into 16bit range
Replies: 6
Views: 125

Re: Adjusting 8bit to 'level' and compose properly into 16bit range

How about reading the grayscale (8-bit) inputs, then "-evaluate-sequence Mean", then write the (16-bit) output? That seems to do everything you want. Of course, you can "-background None -compose Plus -layers flatten" to add the images to each other, then divide by whatever you want. Or do the divis...
by snibgo
2019-02-15T10:07:50-07:00
Forum: Users
Topic: Converting an HDR10 image
Replies: 5
Views: 109

Re: Converting an HDR10 image

Okay, so if we assume img_53.jpg is sRGB and the task is to make it "look reasonable", then the image (without the black bands) is an ordinary photo so I would define "reasonable" as pixel values spanning the range 0 to 100% ("-auto-level") with a mean around 0.5 ("-auto-gamma") and a standard devia...
by snibgo
2019-02-15T08:40:48-07:00
Forum: Users
Topic: Converting an HDR10 image
Replies: 5
Views: 109

Re: Converting an HDR10 image

According to https://en.wikipedia.org/wiki/High-dynamic-range_video#HDR10 , HDR10 uses the REC2020 colorspace, and the SMPTE ST 2084 (PQ) transfer function. That page also gives the transformation from linear to SMPTE ST 2084. I notice that the pixel values of your input img_53.jpg range from 0 to 6...
by snibgo
2019-02-14T17:15:11-07:00
Forum: Users
Topic: Sort alphabetically
Replies: 17
Views: 396

Re: Sort alphabetically

The problem may be the drive "C:" in the file list. Try removing that, but ensure your current drive is "C:".
by snibgo
2019-02-14T11:20:51-07:00
Forum: Users
Topic: Sort alphabetically
Replies: 17
Views: 396

Re: Sort alphabetically

gialandra wrote:montage: unable to open image 'ÿþC': No such file or directory
I suspect your file "myimages.txt" contains some junk, perhaps a UTF-8 byte order mark ("BOM").

If you upload myimages.txt to somewhere and paste a link to it, I can take a look.
by snibgo
2019-02-14T09:24:50-07:00
Forum: Users
Topic: How imagemagick support unicode character
Replies: 2
Views: 114

Re: How imagemagick support unicode character

What is your question?
by snibgo
2019-02-14T09:23:38-07:00
Forum: Users
Topic: Sort alphabetically
Replies: 17
Views: 396

Re: Sort alphabetically

I don't understand your question.

If the files 0x0x0.png and so on are not in the current directory (aka folder), you need to prefix the names with their directory, in the usual way for your platform.
by snibgo
2019-02-14T06:47:09-07:00
Forum: Users
Topic: Sort alphabetically
Replies: 17
Views: 396

Re: Sort alphabetically

To use montage with a text file of filenames, create a text file called for example "myimages.txt", like this:

Code: Select all

0x0x0.png
0x0x1.png
0x0x2.png
... and so on. Then the montage command could be:

Code: Select all

magick montage @myimages.txt out.png
by snibgo
2019-02-13T13:43:58-07:00
Forum: Users
Topic: CMYK Halftone Effect with empy dots
Replies: 8
Views: 231

Re: CMYK Halftone Effect with empy dots

See the examples at http://www.imagemagick.org/Usage/quantize/#ordered-dither , also my own Lithographic effects . We can separate a CMYK image, apply an angled dither to each image, and re-combine. (We do the "angled dither" by rotating the image, dithering, then rotating back.) Windows BAT syntax:...