spotvino.blogg.se

Histograminfo imagemagic
Histograminfo imagemagic






Had my batch retrieve all the info we need to check. The 1st command gives 43 with one of the pictures from that file, please note, that all those pictures are rejected. However, since there is a zip published on the website of my work with examples, I don't think it's a problem I post a link to that here. Samples? Uhm, as far as I know, I am not allowed to put stuff like that online. Unless it is very special, you probably have more colors than you think.īy the way, if your image has more than 1024 colors in it, histogram:info: will color reduce your image to 1024 colors. One that you think runs slow with historgram:info.

histograminfo imagemagic

Please post a link to a sample PNG for us to examine. This will be faster I would hope that using histogram:info: You can get a list of unique colors by usingĬonvert image -unique-colors -depth 8 txt:. Because that one can run without needing Image Magick installed, just needed 2 dll's to be in the same folder.įmw42 wrote:you can get the number of unique colors from IM by using:

HISTOGRAMINFO IMAGEMAGIC PORTABLE

What we only need from convert are the used colors, there is no need for convert to count the number of pixels all the colors use, if that is whats causing the delay with some of the pictures.Īs for Q8/Q16, I'm currently using the convert.exe from the portable version (where the convert.exe is ~5MB in size). I only want to know why convert needs more time, and has high memory usage, with some of the pictures and if it is possible to speed up the process. But I've never run into a PNG with more than 5 colors. Unless that is something that's wrong, that there are more colors in there that should be. Mostly there are 2, or 3 (all with a specific RGB value) depending on the picture, no more. We are not allowed to edit the PNG's, we must only check if they meet the requirements.

histograminfo imagemagic

You can remove the -depth 8 if you run Q8 IM rather than Q16 IM You can speed things up if you reduce the number of colors in your image and if you run Q8 IM.Ĭonvert image -colors 256 +dither -depth 8 "%c" histogram:info: Fmw42 wrote:PNG files are 24-bits per pixel (8 bits per rgb channel) on Q8 (or 48-bits per pixel on Q16).






Histograminfo imagemagic