image: Limit SVG zoom to RSVG limits

See <https://gitlab.gnome.org/GNOME/librsvg/-/issues/938>
for details about the problem.

Closes #88
This commit is contained in:
Sophie Herold 2023-03-09 21:27:51 +01:00 • committed by Christopher Davis
parent dfebfb7470
commit a0ce234946
4 changed files with 38 additions and 12 deletions

View file

@ -15,6 +15,8 @@ use gtk::graphene;
use std::io::Read;
use std::sync::Arc;
pub use formats::RSVG_MAX_SIZE;
#[derive(Clone, Copy, Debug)]
pub enum ImageFormat {
ImageRs(image_rs::ImageFormat),