Search found 3 matches

by Tripleseven
2016-04-21T02:00:15-07:00
Forum: Users
Topic: Getting CMYK pixel values in 0 to 100 format.
Replies: 5
Views: 2542

Re: Getting CMYK pixel values in 0 to 100 format.


I hope you mean you tried multiplying by 100/255.

Sorry, i meant 100/255


Then don't round to integers.

If there are 256 possible input values and only 100 possible output values, obviously some inputs will have the same outputs.

I know. It would just be easier to match the colors with the ...
by Tripleseven
2016-04-20T09:51:29-07:00
Forum: Users
Topic: Getting CMYK pixel values in 0 to 100 format.
Replies: 5
Views: 2542

Re: Getting CMYK pixel values in 0 to 100 format.

As far as I know, there is no mechanism for changing the %c format. Your software that reads the data can multiply the numbers by 100.0/255.0.

Annoyingly, the %c numbers are relative to Quantum, which might be 255 or 65535 or 2^32-1 or 2^64-1. If you precede the format with "-depth 16", it will ...
by Tripleseven
2016-04-20T07:47:51-07:00
Forum: Users
Topic: Getting CMYK pixel values in 0 to 100 format.
Replies: 5
Views: 2542

Getting CMYK pixel values in 0 to 100 format.

Hello.

I'm trying to create a tool to analyze an image and getting a count of pixels by color.
I'm using the following script:

convert.exe image.jpg -format %c histogram:info:

results are
50: ( 0, 0, 0,253) #000000FD cmyk(0,0,0,253)
50: ( 0, 0, 0,250) #000000FA cmyk(0,0,0,250)
50: ( 0, 0, 0 ...