Version 1.0 - Initial release 25th September 2000
The ShowJPG utility is a simple program to display JPEG format image files and differences between two of them.
If invoked with the name of a single JPEG file, it displays a screen slightly larger than the image (if that will fit on the screen) with the image against a black background.
If invoked with the name of two JPEG files, it displays a screen slightly larger than the first image (if that will fit on the screen), and where the two images match it displays black pixels. Where the two images do not match the colour of the picel displayed will be an XOR of the two pixel colours. Differences between the two images are thus highlighted; matching images show a black screen.
This program was created to be used together with the PGUIRobot test programs for Java GUI testing - it is useful to be able to compare screen capture images for differences.
It is available as source and executable code.
This code is Copyright (C) 2000 Mike Calder-Smith, mike@gmot.demon.co.uk It is distributed initially by Guillemot Design Ltd from www.PhOSCo.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. You must include this notice in its entirety with any redistribution. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
"PhOSCo" and "Pharma Open Source Community" are
trade marks of Guillemot Design Ltd. Guillemot Design Ltd Reg No
3803598.
|
Please note that this program is currently not up to full PhOSCo coding standards. It is a work in process, internal use interim release tool. In particular, it currently does not support intenationalisation and is an English language version. Guillemot Design Ltd and Mike Calder do not commit to produce or release a full standard PhOSCo version by any specified date.
The source was compiled with Java 1.3, and requires the availability of the com.sun.image.codec.jpeg extensions from the Sun JDK 1.3 or JRE.
Invoke the program as:
java [-classpath path] ShowJPG jpegfilename
or
java [-classpath path] ShowJPG jpegfilename1 jpegfilename2
There are no on-screen controls other than the standard window controls. Close the display by clicking on the top right hand corner, selecting "Close" from the drop-down given by clicking on the top-left icon, or by pressing Alt-F4 from the keyboard.
The following image is a sample of the display when two slightly different JPEG files are displayed together - an on-screen box has been moved: