PNG Image Tests

This EPUB tests PNG image rendering.

Navigate through chapters to verify each test case.

Test Plan:

PNG decoding (no crash)

Grayscale rendering (4 levels)

Image centering

Large image scaling

PNG Format Test

Basic PNG decoding test.

If the image above is visible and no crash occurred, PNG 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.