Skip to content

Commit

Permalink
Add missing .convert() method call on gif converter (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 authored Jul 16, 2022
1 parent 1bc6ab6 commit d09e491
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 111 deletions.
124 changes: 14 additions & 110 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/sub_commands/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ fn import_pack(pack: &String, config: &Config, opt: &Opt) -> anyhow::Result<()>
let converter = Converter::new(animation);
match opt.animation_format.unwrap_or(config.sticker.animation_format) {
AnimationFormat::Gif => {
converter.gif(config.sticker.transparent_color, &mut sticker_image)?;
converter
.gif(config.sticker.transparent_color, &mut sticker_image)?
.convert()?;
sticker_image_name += "gif";
},
AnimationFormat::Webp => {
Expand Down

0 comments on commit d09e491

Please sign in to comment.