Mercurial > hg > forks > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
2797:6ed30da8b62d | 2798:d9764817aad8 |
---|---|
24 #include "image_load_gdk.h" | 24 #include "image_load_gdk.h" |
25 #include "image_load_jpeg.h" | 25 #include "image_load_jpeg.h" |
26 #include "image_load_tiff.h" | 26 #include "image_load_tiff.h" |
27 #include "image_load_dds.h" | 27 #include "image_load_dds.h" |
28 #include "image_load_ffmpegthumbnailer.h" | 28 #include "image_load_ffmpegthumbnailer.h" |
29 #include "image_load_collection.h" | |
29 | 30 |
30 #include "exif.h" | 31 #include "exif.h" |
31 #include "filedata.h" | 32 #include "filedata.h" |
32 #include "ui_fileops.h" | 33 #include "ui_fileops.h" |
33 #include "gq-marshal.h" | 34 #include "gq-marshal.h" |
641 { | 642 { |
642 DEBUG_1("Using dds loader"); | 643 DEBUG_1("Using dds loader"); |
643 image_loader_backend_set_dds(&il->backend); | 644 image_loader_backend_set_dds(&il->backend); |
644 } | 645 } |
645 else | 646 else |
647 if (il->fd->format_class == FORMAT_CLASS_COLLECTION) | |
648 { | |
649 DEBUG_1("Using custom collection loader"); | |
650 image_loader_backend_set_collection(&il->backend); | |
651 } | |
652 else | |
646 image_loader_backend_set_default(&il->backend); | 653 image_loader_backend_set_default(&il->backend); |
647 | 654 |
648 il->loader = il->backend.loader_new(image_loader_area_updated_cb, image_loader_size_cb, image_loader_area_prepared_cb, il); | 655 il->loader = il->backend.loader_new(image_loader_area_updated_cb, image_loader_size_cb, image_loader_area_prepared_cb, il); |
649 g_mutex_unlock(il->data_mutex); | 656 g_mutex_unlock(il->data_mutex); |
650 } | 657 } |