I am currently using an inhouse HTML slide-show program originally
designed to read jpg pictures in a landscape format from a file folder
and to display them on the in 3 different fixed sizes (small, medium
and large). This personal program has several features that fit my
needs better than commercially available slide-show software, except
that when it displays pictures that are either cropped or taken in
portait format, distortion occurs to fit each of the full fixed sizes
specified. Photos not captured in a landscape mode are frequently
badly streched horizontally. I am only seeking a script (Java or
other) to read any size pictures from a folder, dynamically calculate
the display dimensions and display the result while maintaining
picture integrity ratios. The available display space is in landscape
mode to fit laptop screens. Thus pictures in portrait mode would fit
the height but use less than the available width. Likewise, cropped
pictures with odd sizes would be adjusted accordingly to retain
integrity ratio.
Please specify open-source script or freeware I may embed into the
program. available. Alternatively, you are also most welcome to
provide the source routine.
I have two primary school children waiting to show their summer
holiday project to their friends and classmates.
Your assistance is highly appreciated. |