Commit Graph

24 Commits

Author SHA1 Message Date
Rin Okuyama
8d7db37efc For sixel, no need to round image size to multiple of character size.
With this fix combined with fix to libsixel:

https://github.com/saitoha/libsixel/pull/170

browsing on slow machines (e.g., when floating-point calculation is
emulated by kernel) gets significantly speed up.

Note that if i->cache->a_width (i->cache->a_height) is zero, width
(height) should be set to zero. Otherwise, image in screen boundary
(i.e., partially displayed) becomes strangely resized.
2022-09-02 21:07:11 +09:00
Rene Kita
0073ec6daf Use unsigned int for image size
This removes a warning with -Wall.
2022-02-20 11:14:54 +01:00
Rene Kita
916104b7f2 Remove unused variable 2022-02-20 11:14:53 +01:00
bptato
081f42e35c Convert images to PNG for kitty with ImageMagick 2021-02-19 23:48:52 +01:00
bptato
3304675aff Support kitty image protocol 2021-02-18 19:18:06 +01:00
bptato
e4570e8b6e Support iTerm2 graphics protocol, replace encodeB with base64_encode 2021-02-02 22:14:46 +01:00
bptato
f88e49826d Avoid having external programs download images 2021-02-02 16:40:27 +01:00
bptato
c5cd2b5716 sixel and osc5379 image display protocols can be chosen in options 2021-02-02 15:06:53 +01:00
Araki Ken
982a8feab0 * Add n_terminal_image argument to put_image_{sixel|osc5379}(). * Use struct winsize to calculate ppc and ppl. 2014-12-06 20:47:05 +09:00
Araki Ken
75e89acd80 Add declaration of get_pixel_per_cell(). 2014-12-06 20:47:05 +09:00
Araki Ken
622bdafb59 Minor fix. 2014-12-06 20:47:05 +09:00
Araki Ken
de942f3abf Cache image files if at all possible and convert them to sixel when -sixel option is specified. 2014-12-06 20:47:05 +09:00
Araki Ken
9504d18d0a Init pixel_per_{char|line}_i if get_pixel_per_cell() fails. 2014-12-06 20:47:05 +09:00
Araki Ken
2fe66f3a6f Add -sixel option which supports image processing by img2sixel. 2014-12-06 20:47:05 +09:00
Araki Ken
98b4d10ce4 Don't download image files whose size is specified in <img> tag. 2014-12-06 20:47:04 +09:00
Araki Ken
08811e76fd Minor fixes of parseImageHeader(). 2014-12-06 20:47:04 +09:00
Araki Ken
e6856f2329 Determine the format of an image file by its header data not by its file name suffix. 2014-12-06 20:47:04 +09:00
Araki Ken
0c0d4b5f38 Read width and height from jpeg, png and gif files directly instead of executing w3mimgdisplay -size. 2014-12-06 20:47:04 +09:00
Araki Ken
a95a178971 * terms.c: Change time to wait for the response of "\x1b[14t\x1b[18t" from 0.1 sec to 0.5 sec.
* image.c:
  - clearImage() works.
  - Use cached image files created by w3m in getImage().

* file.c: Hack for alignment.
2014-12-06 20:47:04 +09:00
Araki Ken
147ef0048b - Adjust the image size to the terminal cell size. - If the image size is specified in html source, skip to load the image. 2014-12-06 20:47:04 +09:00
Araki Ken
f4268d8d18 Support remote image by OSC 5379 show_picture sequence. 2014-12-06 20:47:04 +09:00
AIDA Shinra
ec81194f38 Workaround of GC crash on Cygwin64
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-win64gc.patch>,
[w3m-dev:04469] on 2013-10-14.
2013-10-14 22:31:01 +09:00
Tatsuya Kinoshita
5397d09e58 Adding upstream version 0.5.3 2011-05-04 16:41:45 +09:00
Tatsuya Kinoshita
72f72d64a4 Adding upstream version 0.5.1 2011-05-04 16:05:14 +09:00