[magick-users] Different 'ranges' of 'RGB' values in the 'textual version' of 'PNG' images
Anthony Thyssen
A.Thyssen at griffith.edu.au
Tue Jun 16 20:45:18 PDT 2009
On Tue, 16 Jun 2009 06:11:24 -0700 (PDT)
vijay vaidya <vijayvaidya2000 at yahoo.com> wrote:
|
| Hello people,
|
| In our attempt to automate an application, which deals with Images, we plan to use 'ImageMagick' to a good extent. As of now, we have used only straight-forward commands like convert, crop etc. When we are trying to convert a '.png' image to its 'textual representation' through the command,
|
| convert input.png input.txt
|
| , at times, the 'RGB' value or the color code in the 'converted text file' (input.txt in the above example) has values within '0 and 255' (for example, 'white' is represented by the color code, '255,255,255' and 'Blue' by '0,0,255'). But, at times, the 'RGB' value in the 'converted text file' has values within '0 and 65535' ('white' is represented by '65535,65535,65535', 'Blue' by '0,0,65535' and so on).
|
| Can this (getting different RGB ranges) be prevented? Can we tell 'ImageMagick' to always convert a file with '255 RGB'? Would different 'RGB' ranges make a difference in the appearance of the image?
|
Specify the output 'depth' EG: -depth 8
See IM examples, Basics, Depth and Quality
http://www.imagemagick.org/Usage/basics/#depth
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
This signature is lying to you.
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list