Mercurial > hg > forks > geeqie
diff src/image-load.c @ 2798:d9764817aad8
Collection preview
If the folder containing collection files (usually
$HOME/.local/share/geeqie/collections) is opened, the image pane will
show a montage of the thumbnails (to a maximum of 20) of the images in
the selected collection.
Requires ImageMagick.
This is a simplistic implementation, and should be improved e.g.
Use collect-io.c to parse the collection file
Use cached thumbnails instead of re-creating
Use Geeqie to create the montage instead of using ImageMagick
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Wed, 18 Jul 2018 10:16:41 +0100 |
parents | 1618f87e1ae8 |
children | ea4163f0c769 |
line wrap: on
line diff
--- a/src/image-load.c Sun Jul 15 11:02:07 2018 +0100 +++ b/src/image-load.c Wed Jul 18 10:16:41 2018 +0100 @@ -26,6 +26,7 @@ #include "image_load_tiff.h" #include "image_load_dds.h" #include "image_load_ffmpegthumbnailer.h" +#include "image_load_collection.h" #include "exif.h" #include "filedata.h" @@ -643,6 +644,12 @@ image_loader_backend_set_dds(&il->backend); } else + if (il->fd->format_class == FORMAT_CLASS_COLLECTION) + { + DEBUG_1("Using custom collection loader"); + image_loader_backend_set_collection(&il->backend); + } + else image_loader_backend_set_default(&il->backend); il->loader = il->backend.loader_new(image_loader_area_updated_cb, image_loader_size_cb, image_loader_area_prepared_cb, il);