You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

119 lines
2.5 KiB

  1. .TH img2txt 1 "2007-11-07" "libcaca"
  2. .SH NAME
  3. img2txt \- convert images to various text-based coloured files
  4. .SH SYNOPSIS
  5. .B img2txt
  6. [
  7. .B \-W
  8. .I width
  9. ]
  10. [
  11. .B \-H
  12. .I height
  13. ]
  14. .PD 0
  15. .IP
  16. .PD
  17. [
  18. .B \-b
  19. .I brightness
  20. ]
  21. [
  22. .B \-c
  23. .I contrast
  24. ]
  25. [
  26. .B \-g
  27. .I gamma
  28. ]
  29. .PD 0
  30. .IP
  31. .PD
  32. [
  33. .B \-d
  34. .I dither
  35. ]
  36. [
  37. .B \-f
  38. .I format
  39. ]
  40. .I FILE
  41. .RI
  42. .SH DESCRIPTION
  43. .B img2txt
  44. converts images to colour ASCII characters and outputs them to text-based
  45. coloured files.
  46. .PP
  47. .B img2txt
  48. can load the most widespread image formats: PNG, JPEG, GIF, PNG, BMP etc (see
  49. .B NOTES
  50. for details).
  51. By default the output text is 60 columns wide, and the line count is
  52. computed accordingly to respect aspect ratio of original file.
  53. The default output format is standard ANSI coloured text.
  54. .SH OPTIONS
  55. .TP
  56. .B \-W, \-\-width=<width>
  57. Change output column count. If not given, the default is set to 60.
  58. .TP
  59. .B \-H, \-\-height=<height>
  60. Change output line count. If not given, the height is computed to match correct aspect ratio.
  61. .TP
  62. .B \-b, \-\-brightness=<brightness>
  63. Change image brightness. Default to 1.0.
  64. .TP
  65. .B \-c, \-\-contrast=<contrast>
  66. Change image contrast. Default to 1.0.
  67. .TP
  68. .B \-g, \-\-gamma=<gamma>
  69. Change image gamma. Default to 1.0.
  70. .TP
  71. .B \-d, \-\-dither=<dither>
  72. Change dithering algorithm. This can be one of the following (default to fstein) :
  73. none : Nearest color
  74. ordered2 : Ordered 2x2
  75. ordered4 : Ordered 4x4
  76. ordered8 : Ordered 8x8
  77. random : Random
  78. fstein : Floyd Steinberg
  79. .TP
  80. .B \-f, \-\-format=<format>
  81. Change output format. This can be one of the following (default to ansi) :
  82. ansi : coloured ANSI
  83. caca : internal libcaca format
  84. utf8 : UTF8 with CR
  85. utf8 : UTF8 with CRLF (MS Windows)
  86. html : HTML with CSS and DIV support
  87. html3 : Pure HTML3 with tables
  88. irc : IRC with ctrl-k codes
  89. ps : Postscript
  90. svg : Scalable Vector Graphics
  91. tga : Targa Image
  92. .TP
  93. .B \-h, \-\-help
  94. Display help message and exit.
  95. .TP
  96. .B \-v, \-\-version
  97. Display version of the program and exit.
  98. .SH EXAMPLES
  99. img2txt hello.jpg > hello.ans
  100. img2txt \-\-width=40 \-\-format=svg hello.jpg > tinyhello.svg
  101. .SH NOTES
  102. Setting both column and line count (using
  103. \-\-width
  104. and
  105. \-\-height) will let you choose the exact output size without taking aspect ratio in account.
  106. You must compile libcaca package with support of
  107. .I Imlib2
  108. to be able to load a wide variety of image formats. Otherwise you will only be able to load regular BMP files.
  109. .SH SEE ALSO
  110. cacaview(1)
  111. .SH AUTHOR
  112. This manual page was written by Sam Hocevar <sam@zoy.org> and Jean-Yves Lamoureux <jylam@lnxscene.org>.