JPhotoAlbum is a Java desktop application for quickly browsing, organizing and commenting digital photographs and publishing the resulting albums as web pages. Albums are saved in XML formatted files which are transformed to HTML with XML stylesheets.
I have tested many Java photoalbum programs. All do suffer from producing html pages with wrong code, so the page won't pass W3C (tested with Total Validator) and browsers can show the page in the wrong way. This program is no exception, it does produce pages with errors, but they are easily corrected which wasn't the case with the others. So if you don't want to use JAlbum you can use this program.
I have tested the option "as Framed Thumbnails". You get two sub-directories/maps with pictures and thumbnails. You get also two files, "frame.html" and "thumbs.html". If you saved the database as example "test", then you will get "test-frame.html" and "test-thumbs.html". If you test these pages then they will fail. So what's wrong and how to correct?
Changes to make in the file "frame.html";
"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">"
"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">"
Changes to make in the file "thumbs.html";
Add below the line "<META http-equiv="Content-Type" content="text/html; charset=UTF-8">"
Replace "<p>" with "<br>"
Check if all dimensions ("width=" and "height=") are without decimals (this "118.5" is not right!). The values represent pixels.
If you do the above you will get pages which do validate. It can be used as a nice start. All is plain html code, so if you master writing in html code you can make your own setup. If it doesn't pass after rewriting then you know you did something wrong. If you did test with Total Validator you can see what's wrong and correct it.
Download the file JPhotoAlbum-1.3.0.zip. Make a directory/map with the name "JPhotoAlbum" or something similar which fits your needs. Open the zip file and copy the root from the zip file to this directory/map. Next open the sub-directory "lib". Copy the four files to the directory/map "JPhotoAlbum". Next copy directories/maps "pics" and "templates" to the directory/map "JPhotoAlbum". You don't copy the directory/map "src", unless you want to develop. This version works with Java 6, next version (not on SourceForge) did give some errors in the file "JPhotoAlbum-bugs.txt" and it did hang.
The used JPhotoAlbum.cmd file
JPhotoAlbum works with Open JDK in OS/2-eCS. I have made a "JPhotoAlbum.cmd" file with the following contents;
@echo off set CLASSPATH= set BEGINLIBPATH=[drive: java]\JAVA160ga5\bin set path=[drive: java]\JAVA160ga5\bin [drive: JPhotoAlbum] cd [drive: JPhotoAlbum]\JPhotoAlbum java -Duser.home=[drive: JPhotoAlbum]\JPhotoAlbum -jar JPhotoAlbum.jar 2>JPhotoAlbum-bugs.txtI use 2 separate folders (directories), one for Java and one for JPhotoAlbum with the files created by this program. The references used in the cmd file;
should be replaced by real drive letters. You can also use "javaw" instead of "java". Adjust the file from the distribution below, ie. different drive and directories (maps). Save "JPhotoAlbum.cmd" and copy it to the "JPhotoAlbum" directory (map).
Create a new program object. Specify the path and file name: "[drive: JPhotoAlbum]\JPhotoAlbum\JPhotoAlbum.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "JPhotoAlbum". The download also has a nice OS/2 icon.
Parameters / options explained
In the file you can find the above command file (all drive letters are on set to C:) and an OS/2 JPhotoAlbum icon: JPhotoAlbum-ecs.zip.
revision December 30, 2017