aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b6cab75..3366cda 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -4,6 +4,7 @@
4 4
5use std::io; 5use std::io;
6 6
7#[cfg(feature = "png")]
7pub mod convert; 8pub mod convert;
8mod decode; 9mod decode;
9mod encode; 10mod encode;
@@ -167,6 +168,7 @@ impl Image {
167 decode::decode_image(data) 168 decode::decode_image(data)
168 } 169 }
169 170
171 #[cfg(feature = "png")]
170 pub fn write_png<W: io::Write>(&self, writer: W) -> png::Writer<W> { 172 pub fn write_png<W: io::Write>(&self, writer: W) -> png::Writer<W> {
171 convert::to_png(writer, self) 173 convert::to_png(writer, self)
172 } 174 }