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:
parent
dfebfb7470
commit
a0ce234946
4 changed files with 38 additions and 12 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue