simple image viewer?

Phil Schaffner Philip.R.Schaffner at NASA.gov
Tue Mar 23 20:55:52 UTC 2004


On Tue, 2004-03-23 at 13:33, Bevan C. Bennett wrote:
> ...
> eog is probably the simplest for just pulling up an image.
> display is a little fancier (from 'ImageMagick').
> gthumb is a nice little app for managing sets of photos.
> gimp is like photoshop... big, complicated and powerful.
> You can also use most web browsers (like mozilla) to display common 
> image types.
> 
> If you're looking for something with xv's ability to set a simple 
> background image, check out xsetroot, xloadimage and xsetbg.

You can also try rebuilding xv from source.

I had to hack the spec file a bit to get it to build - see attached. 
(If anyone has a more elegant fix, please post - I'm no rpm guru.)

# rpm -ivh http://rpms.4t2.org/RPMS/x/RH8.0/src/xv-3.10a-27.x.src.rpm
# cd /usr/src/redhat/SPECS
# cp [path-to-attachment]xv.spec .
# rpmbuild -ba xv.spec
# rpm -ivh /usr/src/redhat/RPMS/i386/xv-*
# mv /usr/src/redhat/RPMS/i386/xv-* /usr/src/redhat/SRPMS/xv-* [somewhere-to-save]

Phil


-------------- next part --------------
Summary: An X based image file viewer and manipulator.
Name: xv
Version: 3.10a
Release: 27.x
Copyright: Shareware
Group: Amusements/Graphics
Source0: ftp://ftp.cis.upenn.edu/pub/xv/xv-%{version}.tar.gz
Source1: ftp://swrinde.nde.swri.edu/pub/png/applications/xv-3.10a-png-1.2d.tar.gz
Source3: ftp://ftp.cis.upenn.edu/pub/xv/patch/windowid.patch.readme
Patch0: xv-3.10a-linux.patch
Patch1: xv-3.10a.JPEG-patch
Patch2: xv-3.10a-glibc.patch
Patch3: xv-3.10a-grabpatch
Patch4: xv-3.10a-deepcolor.patch
Patch5: xv-3.10a-gifpatch
Patch6: xv-3.10a-longname.patch
Patch7: xv-3.10a-pdf.patch
Patch9: xv-3.10a.TIFF-patch
Patch10: xv-3.10a-gssafer.patch
Patch11: xv-3.10a-windowid.patch
Patch12: xv-3.10a-bmp32.patch
Url: http://www.trilon.com/xv/xv.html
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%package docs
Summary: Document to xv
Requires: xv, ghostscript
Group: Amusements/Graphics

%description
Xv is an image display and manipulation utility for the X Window
System.  Xv can display GIF, JPEG, TIFF, PBM, PPM, X11 bitmap, Utah
Raster Toolkit RLE, PDS/VICAR, Sun Rasterfile, BMP, PCX, IRIS RGB, XPM,
Targa, XWD, PostScript(TM) and PM format image files.  Xv is also
capable of image manipulation like cropping, expanding, taking
screenshots, etc.

%description docs
Xv is an image display and manipulation utility for the X Window
System.  Xv can display GIF, JPEG, TIFF, PBM, PPM, X11 bitmap, Utah
Raster Toolkit RLE, PDS/VICAR, Sun Rasterfile, BMP, PCX, IRIS RGB, XPM,
Targa, XWD, PostScript(TM) and PM format image files.  Xv is also
capable of image manipulation like cropping, expanding, taking
screenshots, etc.

This package contains the document to xv.

%prep
%setup -q -a 1
patch -p1 < xvpng.diff
%patch0 -p1 -b .linux
%patch1 -p0 -b .jpegpatc
%patch2 -p1 -b .glibc
%patch3 -p1 -b .grab
%patch4 -p0 -b .deepcolor
%patch5 -p0 -b .gifpatch
%patch6 -p1 -b .longname
%patch7 -p0 -b .pdfpatch
%patch9 -p0 -b .tiffpatch
%patch10 -p0 -b .gssafer
%patch11 -p0 -b .windowid
%patch12 -p0 -b .bmp32

%build
make RANLIB=ranlib

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/{bin,man/man1} \
	$RPM_BUILD_ROOT%{_docdir}/%{name}

make	BINDIR=$RPM_BUILD_ROOT/usr/X11R6/bin \
	MANDIR=$RPM_BUILD_ROOT/usr/X11R6/man/man1 \
	LIBDIR=$RPM_BUILD_ROOT%{_docdir}/%{name} \
	install

mkdir -p $RPM_BUILD_ROOT//etc/X11/applnk/Graphics

cat > $RPM_BUILD_ROOT/etc/X11/applnk/Graphics/xv.desktop <<EOF
[Desktop Entry]
Name=xv
Comment=An X based image file viewer and manipulator.
Exec=xv
Terminal=0
Type=Application
EOF


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README BUGS CHANGELOG IDEAS 
%config /etc/X11/applnk/Graphics/xv.desktop
/usr/X11R6/bin/*
/usr/X11R6/man/man?/*
/usr/share/doc/xv/*

%files docs
%defattr(-,root,root)
%doc docs/{bmp.doc,epsf.ps,gif.ack,gif.aspect,gif87.doc,gif89.doc}
%doc docs/{help,xpm.ps,vdcomp.man,penn.policy,xv.ann,xv.blurb}
%doc docs/xvdocs.ps $RPM_SOURCE_DIR/windowid.patch.readme

%changelog
* Fri Oct 05 2001 Peter Soos <sp at osb.hu>
- rebuilt for Red Hat Linux 7.2 beta

* Sat May 05 2001 Peter Soos <sp at osb.hu>
- added patch to run ghostscript with the -dSAFER option, which prevents
  malicious PostScript files from writing and/or deleting files.
- added patch to support "-windowid windowid" flag. You can use it now in
  conjunction with "plugger 3.2". See windowid.patch.readme.
- added patch to support for 32-bit-per-pixel BMP files.

* Mon Nov 20 2000 Tim Powers <timp at redhat.com>
- rebuilt to fix bad dir perms

* Tue Nov 7 2000 Than Ngo <than at redhat.com>
- rebuilt for 7.1
- clean up specfile

* Wed Aug 02 2000 Than Ngo <than at redhat.de>
- rebuilt against new libpng

* Mon Jul 24 2000 Prospector <prospector at redhat.com>
- rebuilt

* Thu Jul 13 2000 Than Ngo <than at redhat.de>
- use %%{_docdir}

* Tue Jul 04 2000 Trond Eivind Glomsr?d <teg at redhat.com>
- fix doc inclusion

* Tue Jul 04 2000 Trond Eivind Glomsr?d <teg at redhat.com>
- don't use /usr/doc directly
- use %%{_tmppath}

* Mon Jul 03 2000 Prospector <bugzilla at redhat.com>
- automatic rebuild

* Wed May 31 2000 Than Ngo <than at redhat.de>
- split into xv and xv-docs packages (Bug#11043)

* Tue May 30 2000 Ngo Than
- rebuild for 7.0
- gzip man pages
- remove wmconfig, add xv.desktop

* Fri Jul 30 1999 Tim Powers <timp at redhat.com>
- rebuilt for 6.1

* Fri Apr 23 1999 Bill Nottingham <notting at redhat.com>
- build for powertools
- apply a pile of patches

* Tue Aug  4 1998 Jeff Johnson <jbj at redhat.com>
- build root

* Wed Jun 10 1998 Prospector System <bugs at redhat.com>
- translations modified for de

* Fri May 08 1998 Prospector System <bugs at redhat.com>
- translations modified for de, fr, tr

* Wed Oct 22 1997 Donnie Barnes <djb at redhat.com>
- added wmconfig entry 

* Thu Oct 16 1997 Donnie Barnes <djb at redhat.com>
- various spec file cleanups
- added patch to manipulate PNG files

* Mon Aug 25 1997 Erik Troan <ewt at redhat.com>
- built against glibc
- incorporated new jpegv6 patch from the author's web site


More information about the users mailing list