chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

Test beamer compilation #243

Closed Lycanic closed 1 month ago

Lycanic commented 2 months ago

Test that images are put in correctly, and not as a snapshot of the entire slide as per #59

Uses the same diagram as in pdf2svg

christianp commented 2 months ago

Could you add a test for a PNG graphic, since the original issue said they behaved differently?

Lycanic commented 1 month ago

@christianp Do you want the PNG to have the same width-based test? It was presented as an example of a format which did not cause the error, so I'm not entirely sure what to test for with it.

Lycanic commented 1 month ago

@christianp I've updated the tests for this as we discussed! I would like you to test thest tests on your computer to ensure there's no difference in the way the pdf viewBox is encoded (particularly, I'm concerned that the decimal places could vary between operating systems).

christianp commented 1 month ago

Looks like it works OK on my linux laptop!