JPEG Image Tests

This EPUB tests JPEG image rendering.

Navigate through chapters to verify each test case.

Test Plan:

Grayscale rendering (4 levels)

Image centering

Large image scaling

Cache performance

JPEG Format Test

Basic JPEG decoding test.

If the image above is visible, JPEG decoding works.

Grayscale Test

Verify 4 distinct gray levels are visible.

Gradient Test

Verify gradient quantizes to 4 bands.

Centering Test

Verify image is centered horizontally.

Scaling Test

This image is 1200x1500 pixels - larger than the screen.

It should be scaled down to fit.

Cache Test - Page A

First cache test page. Note the load time.

Navigate to next page, then come back.

Cache Test - Page B

Second cache test page.

Navigate back to Page A - it should load faster from cache.