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:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user