[w3m-dev 02984] inline image improvements and cleanups

* config.h.dist (HAVE_SYMLINK) added
* config.h.dist (HAVE_LSTAT): added
* configure: symlink() check
* configure: lstat() check
* fm.h (maxLoadImage): added
* form.c (form_write_from_file): s/HAVE_READLINK/HAVE_LSTAT/
* image.c: include <sys/stat.h>
* image.c (MAX_LOAD_IMAGE): default 8
* image.c (max_load_image): deleted
* image.c (n_load_image): added
* image.c (showImageProgress): added
* image.c (loadImage): check load image count
			s/HAVE_READLINK/HAVE_LSTAT/ (HAVE_SYMLINK)
			showImageProgress
* local.c: include <sys/stat.h>
		s/HAVE_READLINK/HAVE_LSTAT/
* rc.c (CMT_MAX_LOAD_IMAGE): added
* rc.c (max_load_image): added
* doc/README.img: update
* doc-jp/README.img: update

* file.c (process_img): pre_int fix
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-02-04 15:18:41 +00:00
parent 53b9c12956
commit a8831d96bd
11 changed files with 183 additions and 86 deletions

View File

@@ -1,16 +1,11 @@
Inline image support of w3m
2002/01/31
2002/02/04
H. Sakamoto
Introduction
This is the extension for w3m to support inline image.
The patch for w3m-0.2.4 is available on the following site.
http://www2u.biglobe.ne.jp/~hsaka/w3m/index.html#img
patch/w3m-0.2.4-2.2.patch.gz
patch/README.img
Support
@@ -65,6 +60,9 @@ Option panel
auto_image
Automatic loading of inline image. The default is ON.
If it is OFF, loading starts with a command DISPLAY_IMAGE.
max_load_image
Maximum process for downloading of inline image. The default is 4.
1 to 8 can be set.
ext_image_viewer
Use external image viewer, when a command VIEW_IMAGE or
view of image file which header is "Content-type: image/*".
@@ -79,27 +77,13 @@ Option panel
Required programs
* w3m-0.2.4
* w3m-0.2.5+cvs-1.287 or later
http://w3m.sourceforge.net/
http://sourceforge.net/projects/w3m/
http://prdownloads.sourceforge.net/w3m/
* Imlib-1.9.8 (1.9.10 is recommendable.)
libungif-4.1.0b1 is recommendable.
Install
gunzip -c DIST/w3m-0.2.4.tar.gz | tar -xvf -
cd w3m-0.2.4
gunzip -c DIST/w3m-0.2.4-img-2.2.patch.gz | patch -p1
configure
# When you are asked "Inline image support (you need Imlib library)",
# answer "y".
# Select menu.
make
# To make "w3mimgdisplay" and "w3mimgsize", Imlib is required.
make install
# Must install "w3mimgdisplay" and "w3mimgsize" to $LIB(PREFIX/lib/w3m).
Setting w3mimgdisplay
"w3mimgdisplay" has the following options. Set options to fit terminal.
@@ -120,6 +104,12 @@ Setting w3mimgdisplay
Change log
2002/02/04
* Revised this document.
2002/02/01 w3m-0.2.5+cvs-1.287
* Merged in the CVS repository of the original w3m.
2002/01/31 w3m-0.2.4-img-2.2
* Based on w3m-0.2.4+cvs-1.278.