![]() ![]() Is there any way for Imagemagick to be less than precise about the colours it describes? What I mean is that if you were to look up the colours (53, 81, 102) and (54, 82, 105), you'd be hard-pressed (I think) to notice the difference. Does that difference affect the analysis? I tried setting 'depth' to 24, but the resulting output was just an empty text file.Ģ. ![]() The image being analysed here is 24-bit depth, which means lord knows how many colours. Inevitably, however, there are a couple of follow-ups.ġ. This puts it all in one long (awkward?) command:Įcho "rose.jpg"$'\n'"Histogram"$'\n'"`convert rose.jpg -colors 256 -depth 8 -format "%c" histogram:info:`" | head -n 12Ĭode: Select all $ convert penguinsonice.bmp -colors 256 -depth 8 -verbose info: | sed -n '1p / Where %t is the top of the filename (suffix removed) If you don't want to use sed, you can also do it like this: I think the following are your two problems per the error messages:ġ) You don't want a colon after bmp in your filename? The colon is used only for IM special images such as rose:Ģ) Also you need to use -colors not -colours! (US English not British/Australian/Canadian English) Windows has some issues with needing different escapes and other things. The quote was a standard single quote, but I think you can also use double quotes also. I am no expert on Windows (use Mac OSX brand Unix mostly). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |