Image rendition tests
Image rendition tests
External images
External image with width set

External image with height set

External image with width and height set, with different scaling modes:
Image using static path

Force absolute URLs

Local images


Inline image with a gallery class:

Inline image with no gallery class: should be inline
Paragraph-level image set without a gallery class:
should still be in a paragraph
Mixed-content gallery
PNG transparency
Base image:

converted to jpeg, no background:

converted to jpeg, black background:

converted to jpeg, red background using a tuple:
})
converted to jpeg, white background using hex code:

converted to jpeg, cyan background, multiple qualities on the spectrum:
Quantization
Scale algorithms
Error loading image Landscape_1.jpg{scale_filter=‘xyzzy’} "xyzzy": Invalid scale_filter value ‘xyzzy’
Broken/parse failures

Image not found:
missingfile.jpg

Couldn’t parse image spec:
foo{123[]}
invalid syntax (<unknown>, line 1)
Couldn’t parse image spec:
poiu{100} foo{200}
closing parenthesis ‘}’ does not match opening parenthesis ‘(’ (<unknown>, line 1)
Image not found:
rawr.jpg rawr.jpg
(Did you forget a|
?)
Image not found:
rawr.jpg "title rawr" rawr.jpg
(Did you forget a|
?)
Image not found:
missingfile.jpg

Couldn’t parse image spec:
rawr.jpg{2,3,4}
Expected at most 2 positional args but 3 were given
Couldn’t parse image spec:
rawr.jpg{100,width=200}
Got multiple values for width