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.
This commit is contained in:
2022-06-07 04:21:04 +02:00
parent 930744e165
commit 8dfbd0dee2
4 changed files with 160 additions and 70 deletions

View File

@@ -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 {