crate-docs-theme icon indicating copy to clipboard operation
crate-docs-theme copied to clipboard

Using `sphinxext-photofinish` for creating responsive images

Open amotl opened this issue 2 years ago • 1 comments

Hi.

At https://github.com/crate/cloud-docs/pull/34, we discussed image sizes. Maybe we want to support both large and small screens at the same time optimally, not needing to rely on fast pipes everywhere, i.e. saving bandwidth.

On this matter, we may want to make use of sphinxext-photofinish:

Photofinish is a sphinx extension for creating responsive images to your Sphinx site. This has several benefits:

  • Lower bandwidth cost for browsers and devices that don't need the higher resolution version
  • Higher resolution images for higher resolution devices

Photofinish can dramatically increase the loading time of your Sphinx website.

With kind regards, Andreas.

/cc @matkuliak, @msbt

amotl avatar Oct 06 '23 06:10 amotl

sounds good, but I hope it decreases the loading time instead of increasing it scnr ;)

msbt avatar Oct 06 '23 07:10 msbt