Skip to content

Commit d09e491

Browse files
authored
Add missing .convert() method call on gif converter (#9)
1 parent 1bc6ab6 commit d09e491

File tree

2 files changed

+17
-111
lines changed

2 files changed

+17
-111
lines changed

Cargo.lock

Lines changed: 14 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sub_commands/import.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ fn import_pack(pack: &String, config: &Config, opt: &Opt) -> anyhow::Result<()>
194194
let converter = Converter::new(animation);
195195
match opt.animation_format.unwrap_or(config.sticker.animation_format) {
196196
AnimationFormat::Gif => {
197-
converter.gif(config.sticker.transparent_color, &mut sticker_image)?;
197+
converter
198+
.gif(config.sticker.transparent_color, &mut sticker_image)?
199+
.convert()?;
198200
sticker_image_name += "gif";
199201
},
200202
AnimationFormat::Webp => {

0 commit comments

Comments
 (0)