diff --git a/README.md b/README.md index a3212bd..80378b1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # cowmic -generates memes \ No newline at end of file +generates memes + +`mogrify -define png:format=png32 -format png *.png` diff --git a/cowgen/src/lib.rs b/cowgen/src/lib.rs index a0d0237..394861c 100644 --- a/cowgen/src/lib.rs +++ b/cowgen/src/lib.rs @@ -9,7 +9,7 @@ pub struct Template, V: AsRef> { impl, V: AsRef> Template { pub fn new(base: Vec, elements: Vec>) -> Result { - let base: Image = Image::from_bytes_inferred(base)?; + let base: Image = Image::from_bytes_inferred(base)?; Ok(Self { dimensions: base.dimensions(), elements, diff --git a/cowmic/src/cow2.png b/cowmic/src/cow2.png new file mode 100644 index 0000000..8096e53 Binary files /dev/null and b/cowmic/src/cow2.png differ diff --git a/cowmic/src/main.rs b/cowmic/src/main.rs index 5e13593..0bdc03b 100644 --- a/cowmic/src/main.rs +++ b/cowmic/src/main.rs @@ -4,7 +4,7 @@ use cowgen::{CowError, Element, Text}; fn main() -> Result<(), CowError> { let out = cowgen::Template::new( - include_bytes!("cow.png").to_vec(), + include_bytes!("cow2.png").to_vec(), vec![Element::new( cowgen::Media::Text(Text::new( "Hello",