From 8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 7 Jun 2022 04:21:04 +0200 Subject: Add a command line option to extract thumbnails Only use LibRaw for now, which probably has the most impact using the least amount of effort. --- fiv-browser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fiv-browser.c') diff --git a/fiv-browser.c b/fiv-browser.c index 4c4dab6..111c291 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -555,8 +555,9 @@ thumbnailer_reprocess_entry(FivBrowser *self, GBytes *output, Entry *entry) { g_clear_object(&entry->icon); g_clear_pointer(&entry->thumbnail, cairo_surface_destroy); + guint64 dummy; if (!output || !(entry->thumbnail = rescale_thumbnail( - fiv_io_deserialize(output), self->item_height))) { + fiv_io_deserialize(output, &dummy), self->item_height))) { entry_add_thumbnail(entry, self); materialize_icon(self, entry); } else { -- cgit v1.2.3-54-g00ecf