Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Publication Station
Search
Editing
Text Images
(section)
From Publication Station
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===converting color (bit depth)=== convert an image into monochrome (1 bit depth) image: 2color values (b/w) convert myimage.jpg -colorspace gray -depth 1 out.png (2 bit depth) image: 4 color values convert myimage.jpg -colorspace gray -depth 2 out.png (3 bit depth) image: 8 color values convert myimage.jpg -colorspace gray -depth 3 out.png (4 bit depth) image: 16 color values convert myimage.jpg -colorspace gray -depth 4 out.png (8 bit depth) image: 256 color values convert myimage.jpg -colorspace gray -depth 4 out.png How can we be certain about this? How do can we see the grid that forms a bitmap image? * magnify any digital screen * a Plain-text bitmap: where you can read each pixel: X PixMap (XPM) [https://en.wikipedia.org/wiki/X_PixMap X PixMap (XPM)] is a plain-text bitmap image format, where each color is assigned a character, which is mapped onto the text space. convert myimage.jpg out.xpm <source lang="c"> /* XPM */ static char *output[] = { /* columns rows colors chars-per-pixel */ "50 73 2 1 ", " c black", ". c white", /* pixels */ " ", " ", " ", " ", " ................ ", " ...... . .. . . ....... ", " .. . . ... ", " . . .. . . .. ", " .. . . . . . . . ", " . . . . . . . .. ", " . . . . . . . ", " ... .. . .. ", " ... .. . ... ", " .. . ", " . .. ", " .. . ", " . .. ", " ... . . ", " . . . ", " .. . ", " .. . . . . ", " . . . ", " .. . ..... . ", " . .. .. . ", " . . .. . . ", " . .. . .. ", " .. . . . ..... ", " . ... . . . ", " . . .... .. . .. ", " . .. .... . . ", " . . . . .... ", " . . . .. ... ", " . . . .. ", " .. . . . . ", " . . .. . . ", " . .. .. .. .. ", " .. ... ... . ", " .. .. ", " . . . . . ", " . . .. . ", " . . .... . . ", " . .. ... . .. .. ", " .. . .. ..... . .. . ... . ", " . ... .. .... .... . ", " . ..... ...... ...... . ", " .. . ..... . ......... ... . ", " .. ......... .. . ...... . ", " . .. .................... ", " . .. . ............... . ", " . .. .. ............. . ", " . .. . . ..... . ", " ... . ... . .. ...... . ", " ... . ............. . ", " .. . .. . ", " ... .. ", " ... . . .. ", " .. . . ", " .. . ", " .... .. ", " ..... .... ", " ..... ", " ", " . ", " .. . ... ", " ... .. .. ... .. .. ...... ... ", " ............................ .. ", " ...... ................. ... . ", " ...... ... ... ..... .... .. . ", " .. ", " . ", " ", " ", " " }; </source> {{Youtube|UBX2QQHlQ_I}}
Summary:
Please note that all contributions to Publication Station are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Publication Station:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Main navigation
Main page
Printmaking Studio
Print Studio
Dig. Publishing Studio
Namespaces
Grafiwiki
Random Page
Log in
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs