Skip to content
OGE logoOGE

Image Viewer

oge-image-viewer shows a gallery of images — product photos, scanned documents, inspection shots — with a toolbar, a thumbnail strip and a caption.

Zoom with the buttons, the wheel, a double click (fit ↔ 2×) or a two-finger pinch, always around the pointer; drag to pan while zoomed, clamped so the image never leaves the stage; rotate by quarter turns; go full screen through the Fullscreen API. Everything has a key, and a polite live region announces each image by its alt text.

zoom pan rotate pinch full screen

The toolbar pages, zooms, fits, rotates and toggles full screen; the thumbnails jump (the current one is aria-current). With focus on the viewer, the arrows page — or pan while zoomed — + / - zoom, 0 fits, R rotates and F goes full screen.

images index zoomChange
A palm tree on a sandy beach by a calm blue sea

Turquoise Coast

A palm tree on a sandy beach by a calm blue sea, image 1 of 5

Image 1 at 100%

Loop, zoom limit & handle

loop wraps from the last image to the first, maxZoom caps the zoom at 400 %, [thumbnails]="false" drops the strip and messages overrides one label. resetView() returns to fit.

loop maxZoom thumbnails messages resetView()
A palm tree on a sandy beach by a calm blue sea

Turquoise Coast

A palm tree on a sandy beach by a calm blue sea, image 1 of 5