Minimal image converter/viewer for MS-DOS
OTHER License
This is a quick hack for an image viewer/converter for MS-DOS
People on DOS ain't dead asked if it would be possible to create such a program for MS-DOS supporting modern image formats. As I had quite a lot of the necessary code already available from DOjS I decided to give it a try.
DosView
uses Allegro to display the images, it should support all available VESA modes.
The default screen format is 640x480 with most number of bpp, see below for other options.
Please note: Although DosView
should work from a i386 upwards, this programm can eat huge amounts of RAM (>64MiB) if you feed it large images and/or screen sizes.
Binary downloads are available on the Releases page.
UPXVIEW.EXE
is the same binary as DOSVIEW.EXE
but compressed with UPX 4.2.1.
The source is on GitHub
.WEB
file extension).TIF
file extension): only first image.JP2
file extension)-q
..WEB
file extension): always lossy, quality can be controlled with -q
..TIF
file extension), LZW compression only.JP2
file extension)Usage:
DOSVIEW.EXE [-hkl] [-q <quality>] [-r <num>] [-s <outfile>] <infile>
-h : show this screen.
-l : list know screen modes.
-r <num> : screen mode to use (use -l for a list).
-s <outfile> : do not show the image, save it to outfile instead.
-f <factor> : scale saved image, <1 reduce, >1 enlarge (float).
-q <quality> : Quality for writing JPG/WEP/JP2 image (1..100). Default: 95
ESC
/Q
: quitF
: show actual sizeZ
: fit to screenI
: toggle image infoPAGE UP
/9
: increase zoomPAGE DOWN
/3
: decrease zoomUP
/8
: move image upDOWN
/2
: move image downLEFT
/4
: move image leftRIGHT
/6
: move image rightSHIFT
: move/scale 2x as fastCTRL
: move/scale 4x as fastALT
: move/scale 8x as fastSHIFT
, ALT
and CTRL
can be used in any combination.
Please see the attached LICENSE file for the license of all involved libraries/files.