Skip to content
WAP Resources

Preserve images when archiving a WML deck

To preserve the visual context of a WML deck, archivists must inventory all image dependencies linked within the source cards before converting the deck into a readable HTML format. This process involves identifying remote assets, device-local alternatives, and the descriptive text intended for users when images cannot be displayed.

Understanding WML Image Attributes

WML 1.3 section 11.9 defines three distinct roles for image attributes. The src attribute identifies the image URI.

The localsrc attribute names a device-internal alternative. An original WAP user agent could prefer that alternative when it was available. Note that modern browsers do not implement localsrc, and an HTML reading copy cannot establish if the original device resource was present.

The alt attribute provides text when the image cannot be shown. Preserve it with the image reference, even when the image itself is missing.

Performing an Image Dependency Inventory

Record each image under its source card. Record the src URI exactly, whether the referenced file exists in the saved archive, any localsrc name and the source alt text. Do not infer what a missing device-local resource looked like.

Keep the saved deck unchanged and make a separate inventory. The inventory does not require retrieving missing network resources or substituting a new illustration.

Managing Image Conversion

If a present image is a supported WBMP Type 0 file and a PNG derivative would help the reading copy, use the separate WBMP conversion workflow. Retain the original image bytes and its source reference. A derivative is a reading aid, not proof of how the device displayed the image.

Archivist Checklist

Keep the original WML deck and original images together. Record each card identifier, src, localsrc and alt. Identify files that are missing from the saved set and leave unknown device-local alternatives marked unknown.

Two image entries from one synthetic deck

The synthetic deck for this example contains one card and two image references. The first src is maps/harbour.wbmp, with no localsrc and alt text 'Harbour map'. This file is present in the supplied synthetic saved-file set.

Two references from one synthetic card: maps/harbour.wbmp is present with alt Harbour map. missing.wbmp is missing, its deviceicon localsrc is of unknown availability, and its alt is Pier marker.
The saved-file inventory records the two image references and distinguishes a missing primary file from an unverified device-local alternative.

The second src is missing.wbmp, with localsrc 'deviceicon' and alt text 'Pier marker'. The primary file is absent from the supplied set, and the availability of the device-internal alternative remains unknown. This inventory was derived from the synthetic XML attributes, not from rendering in a WAP user agent.

Before you finish

Check every image against its source card and saved-file inventory.

Ensure original files are retained before making any derivative.

Mark device-local availability as unknown when it has not been established.

Next step

Record the original references even when a saved image is missing. The archive can preserve what was requested and described without inventing what appeared on screen.

Read an old WAP site without losing its card links