[T] Test thumbnailer

This commit is contained in:
Azalea Gui
2023-02-23 13:41:18 -05:00
parent c1114d2bee
commit 127fbffb65
+3 -1
View File
@@ -22,5 +22,7 @@ fn main() {
let thumbnailer_path = "/usr/share/thumbnailers/totem.thumbnailer";
let thumbnailer = Thumbnailer::load(Path::new(thumbnailer_path)).unwrap();
info!("thumb {:?}", thumbnailer)
info!("thumb {:?}", thumbnailer);
info!("check {:?}", thumbnailer.check("audio/x-mp3"));
thumbnailer.gen(path.to_str().unwrap(), "/tmp/test.png", 256).expect("Generation failed");
}