diff --git a/src/lib.rs b/src/lib.rs index 9723406..c9a7313 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,6 +122,7 @@ extern crate chrono; extern crate fancy_regex; extern crate hashbrown; +#[cfg(feature = "image")] extern crate image; extern crate md5; extern crate quick_xml; diff --git a/src/structs/image.rs b/src/structs/image.rs index 51ec2b4..ec89678 100644 --- a/src/structs/image.rs +++ b/src/structs/image.rs @@ -163,6 +163,7 @@ impl Image { self.set_one_cell_anchor(one_cell_anchor); } + #[cfg(feature = "image")] pub fn change_image(&mut self, path: &str) { let marker = self.get_from_marker_type().clone(); self.remove_two_cell_anchor();