Search found 13 matches

by DavideDavide
2020-05-08T05:57:10-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Re: Percentage of a color

snibgo wrote:
2020-05-08T04:52:19-07:00
I showed you a command with BAT syntax. If you are running from CMD, the command line, don't double the % signs.
Wonderful, it's working!
by DavideDavide
2020-05-08T01:28:42-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Re: Percentage of a color

Thanks snibgo but probably there are some other options to tweak: Actually the script is: convert myImage.png -colorspace HCL -channel R -separate +channel -evaluate AddModulus 50%% -solarize 50%% -level 33.3333,50%% -format %%[fx:mean] info: The option "-channel 0" didn't work with IM6, so I search...
by DavideDavide
2020-05-07T02:25:03-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Re: Percentage of a color

fmw42 wrote:
2020-05-06T09:41:17-07:00
Just replace magick with convert.
Nope, there isn't the option range-threshold in convert
by DavideDavide
2020-05-06T06:48:40-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Re: Percentage of a color

Snibo,
I have IM 6.8.8-6, so I have to use convert, do you know the syntax of your commands for convert?
TIA
by DavideDavide
2020-05-06T01:21:09-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Re: Percentage of a color

Okay, from your answers, I think you are interested the hue, and want to ignore lightness and saturation. Red, green and blue are equally-spaced on the colour circle, 120 degrees apart, or 0.3333 on a scale of 0.0 to 1.0. Red is at both 0.0 and 1.0. I add 50% to make it at 0.5. I assume a colour co...
by DavideDavide
2020-05-05T07:15:17-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Re: Percentage of a color

snibgo wrote:
2020-05-05T05:45:19-07:00
But you want percentages. I suppose #f00 and #800 are "100% red". Is that correct?

And #0f0 has 0% red.
Right!


snibgo wrote:
2020-05-05T05:45:19-07:00
What about #8f0? What percentage of red should that be? How is that percentage calculated?
0% of red, but I don't know how to calculate it.
by DavideDavide
2020-05-05T05:40:42-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Re: Percentage of a color

snibgo wrote:
2020-05-04T14:27:35-07:00
What about my first question?
#f00, or #800: red
#0f0, or #8f0: green
by DavideDavide
2020-05-04T13:59:12-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Re: Percentage of a color

Yes, but you need to define exactly what you want. You might think about examples. If your query is "percentage of red", then what is the correct answer for a pixel that is #f00, or #800, or #0f0, or #8f0, etc? Another question: can your query colour be any arbitrary colour such as #123? Or is it o...
by DavideDavide
2020-05-04T02:53:02-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 3607

Percentage of a color

Hi guys,
Is it possible to detect the percentage of a color in one image? For example the percentage of red(s) or green(s).
TIA
Davide
by DavideDavide
2015-03-06T12:31:47-07:00
Forum: Users
Topic: Pdf to image
Replies: 6
Views: 1524

Re: Pdf to image

Thanks snibgo, it's the command I use, with density of 600.
I converted to png then resize it and text is blurry, not so much but it is.

I can try to reduce the pdf then convert to png. Is there a imagemagick command to reduce pdfs?
by DavideDavide
2015-03-06T11:53:55-07:00
Forum: Users
Topic: Pdf to image
Replies: 6
Views: 1524

Re: Pdf to image

No, it's not the webpage. I can easily manage the image in my web page. The issue is to convert pdf text to a defined image of a properly dimension.
How can I resize the pdf (or the resulting image) preserving a detailed text i.e. no blur, no noise?
by DavideDavide
2015-03-06T09:11:34-07:00
Forum: Users
Topic: Pdf to image
Replies: 6
Views: 1524

Re: Pdf to image

Hi,
Unfortunately the non reduced version is too large to put it in a sidebar
by DavideDavide
2015-03-06T08:56:56-07:00
Forum: Users
Topic: Pdf to image
Replies: 6
Views: 1524

Pdf to image

Hi Folks! I have a pdf that represents a column of text of a colleague of mine: job title, contact details, address and so on I put a blurred version here http://imgur.com/SQWMCmI (privacy concerns) I need to convert the pdf to an image and put it as a sidebar on the left of a web page, then I need ...