Avoid producing thumbnails of thumbnails

This commit is contained in:
2021-12-28 00:26:36 +01:00
parent af2eb411d9
commit ad1ff06aff
3 changed files with 32 additions and 11 deletions

View File

@@ -134,6 +134,9 @@ typedef struct _FivIoThumbnailSizeInfo {
extern FivIoThumbnailSizeInfo
fiv_io_thumbnail_sizes[FIV_IO_THUMBNAIL_SIZE_COUNT];
/// Returns this user's root thumbnail directory.
gchar *fiv_io_get_thumbnail_root(void);
/// Generates wide thumbnails of up to the specified size, saves them in cache.
gboolean fiv_io_produce_thumbnail(
GFile *target, FivIoThumbnailSize size, GError **error);