xli.okubeni 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. XLI - X11 Image Loading Utility
  2. WHAT IS IT?
  3. xli is a version of xloadimage.
  4. This utility will view several types of images under X11, or load
  5. images onto the X11 root window. xli can also be used on some (32 bit)
  6. MSDOS systems. The current version (1.16) supports:
  7. CMU Window Manager raster files
  8. Faces Project images
  9. Fuzzy Bitmap (.fbm) images
  10. GEM bit images
  11. GIF images (Including GIF89a compatibility)
  12. G3 FAX images
  13. JFIF style jpeg images
  14. McIDAS areafiles
  15. MacPaint images
  16. -> Windows, OS/2 BMP Image
  17. Monochrome PC Paintbrush (.pcx) images
  18. -> Photograph on CD Image
  19. Portable Bitmap (.pbm, .pgm, .ppm) images
  20. Sun monochrome rasterfiles
  21. Sun color RGB rasterfiles
  22. Targa (.tga) files
  23. Utah Raster Toolkit (.rle) files
  24. X pixmap (.xpm) files (Version 1, 2C and 3)
  25. X10 bitmap files
  26. X11 bitmap files
  27. X Window Dump (except TrueColor and DirectColor)
  28. A variety of options are available to modify images prior to viewing.
  29. These options include clipping, dithering, depth reduction, zoom
  30. (either X or Y axis independently or both at once), brightening or
  31. darkening, input gamma correction, and image merging. When applicable,
  32. these options are done automatically (eg. a color image to be displayed
  33. on a monochrome screen will be dithered automatically). A utility (xlito)
  34. is provided that allows these viewing options to be appended to the image
  35. files.
  36. CHANGES FROM XLI 1.15
  37. Added BMP (MS Windows, OS/2) file format loader.
  38. Added PCD (PhotoCD) file format loader.
  39. Bowed to the pressure of the number of JPEGs that are gamma
  40. corrected. JPEG images now are assumed to have a gamma of 2.2.
  41. Fixed bug in gif loader (files with local colormaps came out black)
  42. Improved the quality of color quantization.
  43. Added an -expand option that forces the image to be expanded
  44. to 24 bit.
  45. Added a -title option.
  46. Added interactive image rotation using the 'l' and 'r' keys.
  47. Numerous bug fixes.
  48. (See the patches file for more details and credits)
  49. HOW IS XLI RELATED TO XLOADIMAGE ?
  50. xli version 1.00 was based on xloadimage version 3.01.
  51. xli version 1.16 has many improvements over xli 1.00.
  52. xloadimage is maintained by Jim Frost - jimf@saber.com
  53. xli is maintained by Graeme Gill - graeme@labtam.oz.au
  54. Please read the README.orig file, which is the original xloadimage README
  55. file for xloadimage info and credits.
  56. WHERE CAN I GET IT ?
  57. Two files:
  58. xli.README
  59. xli.1.16.tar.gz
  60. on
  61. ftp.x.org
  62. in
  63. /contrib/applications, and mirrors of this archive.
  64. Note that ftp.x.org will recompress as .Z on the fly.
  65. COMPILING
  66. There are a variety of ways to compile xli, depending on what
  67. environment you have.
  68. The easiest way of compiling it is to use the Imakefile. Simply
  69. run 'xmkmf' (which should be in your systems /usr/bin/X11 or
  70. somewhere equivalent), which should make a Makefile suitable
  71. for your system. Type 'make' to then build xli. It can be
  72. installed in the standard place (along with its aliases xview
  73. and xsetbg) by typing 'make install'. The manual entry can
  74. be installed using 'make install.man'.
  75. If using the Imakefile is not possible, then you can try using
  76. Makefile.std. Choose your target from
  77. std BSD environment
  78. sysv SYSV environment
  79. gcc BSD using gcc
  80. sysv-gcc SYSV using older gcc
  81. and use something like:
  82. make -f Makefile.std target
  83. Makefile.std can also be used to re-make the Imakefile, Makefile.dos,
  84. the tar archive, or a DOS ready .zip archive.
  85. There are a few compilation flags that you may need/want to change.
  86. This can be done in the Makefile.std file. The defines are:
  87. -DHAVE_GUNZIP if you want to use gunzip rather than uncompress on .Z files
  88. -DNO_UNCOMPRESS if you system doesn't have uncompress or gunzip.
  89. The JPEG code needs a compilation flag that tells it whether right
  90. shift (>>) is signed or unsigned on your machine. If it's unsigned, add
  91. -DRIGHT_SHIFT_IS_UNSIGNED
  92. The defines should be added to the MISC_DEFINES= line in the Makefile.std
  93. file. After doing this you may need to re-bulild the Imakefile or
  94. Makefile.dos if you are using them. You can do this using:
  95. make -f Makefile.std Imakefile
  96. or
  97. make -f Makefile.std Makefile.dos
  98. COMPILING FOR DOS USING DJGPP 1.11
  99. xli can be used on 32 bit 80x86 systems running MSDOS if
  100. compiled using djgpp version 1.11. Since it has to run without
  101. the aid of a windowing system or window manager, the user interface
  102. leaves a lot to be desired, but it does work. It is important to
  103. check that your video card is supported by the djgpp go32 environment,
  104. and that it is configured appropriately.
  105. Assuming that you have unpacked the tar archive on a UNIX system,
  106. and have the zip utility in your path, the first step is to
  107. create xli.zip:
  108. make -f Makefile.std zip
  109. This can then be transfered to the MSDOS system and unpacked
  110. in a suitable directory using unzip or pkunzip. Assuming the djgpp
  111. compiling environment is set up suitably, xli can be compiled using
  112. ndmake:
  113. ndmake -f Makefile.dos
  114. xlito now seems to work with djgpp 1.11 (it didn't
  115. under version 1.09)
  116. xli can then be run as usual.
  117. For details on setting up djgpp, please read the djgpp docs.
  118. There is an optional compile flag -DDO_ARG_EXP that can be added
  119. to the MISC_DEFINES in Makefile.std, or to DEFINES in Makefile.dos
  120. that turns on argument expansion processing within xli. This
  121. is somewhat more powerful than that provided by go32, but to get
  122. it to work fully you will have to turn off the go32 argument expansion
  123. by setting the appropriate go32 options.
  124. Please note that this DOS release probably has several undiscovered
  125. bugs, as it has not been as extensively tested as the X11 version.
  126. OTHER NOTES
  127. The file build-jpeg is intended to aid those who want to port
  128. the latest Independent JPEG Group's JPEG software to xli.
  129. It semi-automatically creates the jpeglib.h and jpeglib.c files
  130. used by xli. Note that future versions of the jpeg library
  131. may be require updating of the xli specific jpeg.h and jpeg.c
  132. files. Note that one change was made to the file jmemnobs.c,
  133. "methods" was renamed to "smethods" so as to avoid clashing
  134. with the variable of the same name in jmemmgr.c
  135. Please also note that the JPEG library README file is included at
  136. the top of jpeglib.c, and gives distribution and copyright
  137. information for this library.
  138. PRAISE, SUGGESTIONS AND BUG REPORTS
  139. xli has been developed in a fairly limited hardware environment, and
  140. not all combinations of displays and/or image formats and options
  141. have been tested. xli is useful to me, and maybe it will be
  142. useful to you.
  143. Praise, suggestions, and bug reports should go to:
  144. Graeme Gill
  145. graeme@labtam.oz.au
  146. [I may not be able to respond promptly to mail during the period
  147. 94/7/30 to 94/8/15]