Search found 13038 matches

by snibgo
2020-05-09T15:54:47-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 1756

Re: PSD to png - black background

@lucd: You say "I convert them as png 24" but you don't show your complete code.

png24 has no alpha channel. It has 8-bit channels for RGB only. Therefore the result will have no transparency.
by snibgo
2020-05-08T04:52:19-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 1580

Re: Percentage of a color

I showed you a command with BAT syntax. If you are running from CMD, the command line, don't double the % signs.
by snibgo
2020-05-07T21:51:15-07:00
Forum: MagickWand
Topic: Exception
Replies: 11
Views: 1834

Re: Exception

Please answer the questions in the post by "magick" above.

I probably can't help with Java code. But if you don't show your code, we can't say what the problem might be.
by snibgo
2020-05-07T04:44:50-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 1580

Re: Percentage of a color

Instead of

Code: Select all

-range-threshold 33.3333,50,50,66.6667%%
... you can use:

Code: Select all

-solarize 50%% -level 33.3333,50%%
by snibgo
2020-05-06T23:34:15-07:00
Forum: Users
Topic: How convert jpg change dpi
Replies: 7
Views: 828

Re: How convert jpg change dpi

For v6, use "convert" instead of "magick".

Your 6.7.8-9 is very very old. It may have a bug for "-density". I suggest you upgrade.
by snibgo
2020-05-06T21:33:17-07:00
Forum: Users
Topic: How convert jpg change dpi
Replies: 7
Views: 828

Re: How convert jpg change dpi

What version of IM, on what platform? Please show your exact commands. It works fine for me, with IM v7.0.8-64 on Windows 8.1: %IMG7%magick -size 6969x9331 -density 300 -units PixelsPerInch xc: a.jpg %IMG7%magick identify -format "%%f %%x %%y %%U\n" a.jpg %IMG7%magick a.jpg -density 350 -resize 5973...
by snibgo
2020-05-06T20:07:00-07:00
Forum: Users
Topic: How convert jpg change dpi
Replies: 7
Views: 828

Re: How convert jpg change dpi

With "-density 300".
by snibgo
2020-05-05T12:23:59-07:00
Forum: Users
Topic: Convert Images to Display P3 Colorspace
Replies: 1
Views: 431

Re: Convert Images to Display P3 Colorspace

First, get an ICC profile file for each of sRGB and P3. Your IM installation directory probably contains sRGB.icc. http://color.support/iccprofiles.html has P3 profiles. I suggest you use the D65 one. Assuming your input is encoded as sRGB, simply assign the sRGB profile and convert to the new profi...
by snibgo
2020-05-05T10:37:00-07:00
Forum: Users
Topic: how to use -write mpr:
Replies: 5
Views: 697

Re: how to use -write mpr:

I did find it a bit inconsistent that ... Yes. The reason is that IM has evolved over the decades. It started with the traditional Unix syntax of: {program-name} {options} {input-file} {output-file} ... but evolved into accepting multiple inputs, and capable of writing multiple outputs, with some o...
by snibgo
2020-05-05T08:23:15-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 1580

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 con...
by snibgo
2020-05-05T05:45:19-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 1580

Re: Percentage of a color

But you want percentages. I suppose #f00 and #800 are "100% red". Is that correct?

And #0f0 has 0% red.

What about #8f0? What percentage of red should that be? How is that percentage calculated?
by snibgo
2020-05-05T04:45:52-07:00
Forum: Users
Topic: how to use -write mpr:
Replies: 5
Views: 697

Re: how to use -write mpr:

My response above was accurate for running IM from the command line or for shell scripts (bash, Windows BAT, etc). If you use IM scripts (eg "magick -script myscript.txt") the situation is different, and you need explicit "-write" keywords. For that, you need "-write" before the final output file. Y...
by snibgo
2020-05-04T14:27:35-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 1580

Re: Percentage of a color

What about my first question?
by snibgo
2020-05-04T06:11:09-07:00
Forum: Users
Topic: how to use -write mpr:
Replies: 5
Views: 697

Re: how to use -write mpr:

Read the error message. It is complaining about the 27th argument. Count them in your command. This is the final "-write", to a file. The problem is that IM expects the final option to be simply a file name. For that name, "-write" is implied. It is an error to include "-write". So the cure is eithe...
by snibgo
2020-05-04T05:49:58-07:00
Forum: Users
Topic: Percentage of a color
Replies: 15
Views: 1580

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 on...