A Simple X Image Viewer
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

README.md 9.9 KiB

10 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
13 yıl önce
10 yıl önce
10 yıl önce
11 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. ![sxiv](http://muennich.github.com/sxiv/img/logo.png "sxiv")
  2. **Simple X Image Viewer**
  3. sxiv is an alternative to feh and qiv. Its only dependencies besides xlib are
  4. imlib2, libexif and giflib. The primary goal for writing sxiv is to create an
  5. image viewer, which only has the most basic features required for fast image
  6. viewing (the ones I want). It has vi key bindings and works nicely with tiling
  7. window managers. Its code base should be kept small and clean to make it easy
  8. for you to dig into it and customize it for your needs.
  9. Features
  10. --------
  11. * Basic image operations, e.g. zooming, panning, rotating
  12. * Customizable key and mouse button mappings (in *config.h*)
  13. * Thumbnail mode: grid of selectable previews of all images
  14. * Ability to cache thumbnails for fast re-loading
  15. * Basic support for multi-frame images
  16. * Load all frames from GIF files and play GIF animations
  17. * Display image information in status bar
  18. Screenshots
  19. -----------
  20. **Image mode:**
  21. ![Image](http://muennich.github.com/sxiv/img/image.png "Image mode")
  22. **Thumbnail mode:**
  23. ![Thumb](http://muennich.github.com/sxiv/img/thumb.png "Thumb mode")
  24. Installation
  25. ------------
  26. sxiv is built using the commands:
  27. $ make
  28. # make install
  29. Please note, that the latter one requires root privileges.
  30. By default, sxiv is installed using the prefix "/usr/local", so the full path
  31. of the executable will be "/usr/local/bin/sxiv".
  32. You can install sxiv into a directory of your choice by changing the second
  33. command to:
  34. # make PREFIX="/your/dir" install
  35. The build-time specific settings of sxiv can be found in the file *config.h*.
  36. Please check and change them, so that they fit your needs.
  37. If the file *config.h* does not already exist, then you have to create it with
  38. the following command:
  39. $ make config.h
  40. Usage
  41. -----
  42. sxiv has two modes of operation: image and thumbnail mode. The default is
  43. image mode, in which only the current image is shown. In thumbnail mode a grid
  44. of small previews is displayed, making it easy to choose an image to open.
  45. **Command line options:**
  46. -a Play animations of multi-frame images
  47. -b Do not show info bar on bottom of window
  48. -c Remove all orphaned cache files from thumbnail cache and exit
  49. -f Start in fullscreen mode
  50. -G GAMMA Set image gamma to GAMMA (-32..32)
  51. -g GEOMETRY Set window position and size
  52. (see section GEOMETRY SPECIFICATIONS of X(7))
  53. -i Read file list from stdin
  54. -N NAME Set X window resource name to NAME
  55. -n NUM Start at picture NUM
  56. -o Write list of marked files to stdout when quitting
  57. -q Be quiet, disable warnings
  58. -r Search given directories recursively for images
  59. -S DELAY Enable slideshow and set slideshow delay to DELAY seconds
  60. -s MODE Set scale mode to MODE ([d]own, [f]it, [w]idth, [h]eight)
  61. -t Start in thumbnail mode
  62. -v Print version information and exit
  63. -Z Same as `-z 100'
  64. -z ZOOM Set zoom level to ZOOM percent
  65. **Key mappings:**
  66. 0-9 Prefix the next command with a number (denoted via [count])
  67. q Quit sxiv
  68. Return Switch to thumbnail mode / open selected image
  69. f Toggle fullscreen mode
  70. b Toggle visibility of info bar on bottom of window
  71. Ctrl-x Send the next key to the external key-handler
  72. g Go to first image
  73. G Go to the last image, or image number [count]
  74. r Reload image
  75. D Remove image from file list and go to next image
  76. Ctrl-h,j,k,l Scroll one window width/height left/down/up/right
  77. + Zoom in
  78. - Zoom out
  79. m Mark/unmark current image
  80. M Reverse all image marks
  81. Ctrl-m Remove all image marks
  82. N Go [count] marked images forward
  83. P Go [count] marked images backward
  84. {,} Decrease/increase gamma correction by [count] steps
  85. Ctrl-g Reset gamma correction
  86. *Thumbnail mode:*
  87. h,j,k,l Move selection left/down/up/right [count] times (also with
  88. arrow keys)
  89. R Reload all thumbnails
  90. *Image mode:*
  91. n,Space Go [count] images forward
  92. p,Backspace Go [count] images backward
  93. [,] Go [count] * 10 images backward/forward
  94. Ctrl-n,p Go to the next/previous frame of a multi-frame image
  95. Ctrl-Space Play/stop animations of multi-frame images
  96. h,j,k,l Scroll image 1/5 of window width/height or [count] pixels
  97. left/down/up/right (also with arrow keys)
  98. H,J,K,L Scroll to left/bottom/top/right image edge
  99. = Set zoom level to 100%, or [count]%
  100. w Set zoom level to 100%, but fit large images into window
  101. W Fit image to window
  102. e Fit image to window width
  103. E Fit image to window height
  104. <,> Rotate image (counter-)clockwise by 90 degrees
  105. ? Rotate image by 180 degrees
  106. |,_ Flip image horizontally/vertically
  107. a Toggle anti-aliasing
  108. A Toggle visibility of alpha-channel, i.e. transparency
  109. s Toggle slideshow or set delay to [count] seconds
  110. **Mouse button mappings:**
  111. *Image mode:*
  112. Button1 Go to the next image
  113. Button3 Go to the previous image
  114. Button2 Drag image with mouse while keeping it pressed
  115. Wheel Scroll image up/down
  116. Shift+Wheel Scroll image left/right
  117. Ctrl+Wheel Zoom in/out
  118. Download & Changelog
  119. --------------------
  120. You can [browse](https://github.com/muennich/sxiv) the source code repository
  121. on GitHub or get a copy using git with the following command:
  122. git clone https://github.com/muennich/sxiv.git
  123. **Stable releases**
  124. **[v1.3.1](https://github.com/muennich/sxiv/archive/v1.3.1.tar.gz)**
  125. *(November 16, 2014)*
  126. * Fixed build error, caused by delayed config.h creation
  127. * Fixed segfault when run with -c
  128. **[v1.3](https://github.com/muennich/sxiv/archive/v1.3.tar.gz)**
  129. *(October 24, 2014)*
  130. * Extract thumbnails from EXIF tags (requires libexif)
  131. * Zoomable thumbnails, supported sizes defined in config.h
  132. * Fixed build error with giflib version >= 5.1.0
  133. **[v1.2](https://github.com/muennich/sxiv/archive/v1.2.tar.gz)**
  134. *(April 24, 2014)*
  135. * Added external key handler, called on keys prefixed with `Ctrl-x`
  136. * New keybinding `{`/`}` to change gamma (by András Mohari)
  137. * Support for slideshows, enabled with `-S` option & toggled with `s`
  138. * Added application icon (created by 0ion9)
  139. * Checkerboard background for alpha layer
  140. * Option `-o` only prints files marked with `m` key
  141. * Fixed rotation/flipping of multi-frame images (gifs)
  142. **[v1.1.1](https://github.com/muennich/sxiv/archive/v1.1.1.tar.gz)**
  143. *(June 2, 2013)*
  144. * Various bug fixes
  145. **[v1.1](https://github.com/muennich/sxiv/archive/v1.1.tar.gz)**
  146. *(March 30, 2013)*
  147. * Added status bar on bottom of window with customizable content
  148. * New keyboard shortcuts `\`/`|`: flip image vertically/horizontally
  149. * New keyboard shortcut `Ctrl-6`: go to last/alternate image
  150. * Added own EXIF orientation handling, removed dependency on libexif
  151. * Fixed various bugs
  152. **[v1.0](https://github.com/muennich/sxiv/archive/v1.0.tar.gz)**
  153. *(October 31, 2011)*
  154. * Support for multi-frame images & GIF animations
  155. * POSIX compliant (IEEE Std 1003.1-2001)
  156. **[v0.9](https://github.com/muennich/sxiv/archive/v0.9.tar.gz)**
  157. *(August 17, 2011)*
  158. * Made key and mouse mappings fully configurable in config.h
  159. * Complete code refactoring
  160. **[v0.8.2](https://github.com/muennich/sxiv/archive/v0.8.2.tar.gz)**
  161. *(June 29, 2011)*
  162. * POSIX-compliant Makefile; compiles under NetBSD
  163. **[v0.8.1](https://github.com/muennich/sxiv/archive/v0.8.1.tar.gz)**
  164. *(May 8, 2011)*
  165. * Fixed fullscreen under window managers, which are not fully EWMH-compliant
  166. **[v0.8](https://github.com/muennich/sxiv/archive/v0.8.tar.gz)**
  167. *(April 18, 2011)*
  168. * Support for thumbnail caching
  169. * Ability to run external commands (e.g. jpegtran, convert) on current image
  170. **[v0.7](https://github.com/muennich/sxiv/archive/v0.7.tar.gz)**
  171. *(February 26, 2011)*
  172. * Sort directory entries when using `-r` command line option
  173. * Hide cursor in image mode
  174. * Full functional thumbnail mode, use Return key to switch between image and
  175. thumbnail mode
  176. **[v0.6](https://github.com/muennich/sxiv/archive/v0.6.tar.gz)**
  177. *(February 16, 2011)*
  178. * Bug fix: Correctly display filenames with umlauts in window title
  179. * Basic support of thumbnails
  180. **[v0.5](https://github.com/muennich/sxiv/archive/v0.5.tar.gz)**
  181. *(February 6, 2011)*
  182. * New command line option: `-r`: open all images in given directories
  183. * New key shortcuts: `w`: resize image to fit into window; `W`: resize window
  184. to fit to image
  185. **[v0.4](https://github.com/muennich/sxiv/archive/v0.4.tar.gz)**
  186. *(February 1, 2011)*
  187. * New command line option: `-F`, `-g`: use fixed window dimensions and apply
  188. a given window geometry
  189. * New key shortcut: `r`: reload current image
  190. **[v0.3.1](https://github.com/muennich/sxiv/archive/v0.3.1.tar.gz)**
  191. *(January 30, 2011)*
  192. * Bug fix: Do not set setuid bit on executable when using `make install`
  193. * Pan image with mouse while pressing middle mouse button
  194. **[v0.3](https://github.com/muennich/sxiv/archive/v0.3.tar.gz)**
  195. *(January 29, 2011)*
  196. * New command line options: `-d`, `-f`, `-p`, `-s`, `-v`, `-w`, `-Z`, `-z`
  197. * More mouse mappings: Go to next/previous image with left/right click,
  198. scroll image with mouse wheel (horizontally if Shift key is pressed),
  199. zoom image with mouse wheel if Ctrl key is pressed
  200. **[v0.2](https://github.com/muennich/sxiv/archive/v0.2.tar.gz)**
  201. *(January 23, 2011)*
  202. * Bug fix: Handle window resizes correctly
  203. * New keyboard shortcuts: `g`/`G`: go to first/last image; `[`/`]`: go 10
  204. images back/forward
  205. * Support for mouse wheel zooming (by Dave Reisner)
  206. * Added fullscreen mode
  207. **[v0.1](https://github.com/muennich/sxiv/archive/v0.1.tar.gz)**
  208. *(January 21, 2011)*
  209. * Initial release