Fix #727: bigger thumbnails for 32" screens
authorColin Clark <colin.clark@cclark.uk>
Fri, 13 Dec 2019 14:54:29 +0000 (14:54 +0000)
committerColin Clark <colin.clark@cclark.uk>
Fri, 13 Dec 2019 14:54:29 +0000 (14:54 +0000)
https://github.com/BestImageViewer/geeqie/issues/727

New option on Preferences/General to set custom thumbnail size.

doc/docbook/GuideReferenceThumbnails.xml
src/preferences.c

index c7cfe2e..9871ad8 100644 (file)
@@ -28,7 +28,8 @@
   <section id="Size">\r
     <title>Size</title>\r
     <para>Geeqie allows the following sizes for thumbnails:</para>\r
-    <para>24x24, 32x32, 48x48, 64x64, 96x72, 96x96, 129x96, 128x128, 160x120, 160x160, 192x144, 192x192, 256x192, 256x256</para>\r
+    <para>24x24, 32x32, 48x48, 64x64, 96x72, 96x96, 129x96, 128x128, 160x120, 160x160, 192x144, 192x192, 256x192, 256x256, custom</para>\r
+    <para>Custom size has a maximum of 512x512.</para>\r
     <para>The thumbnail is scaled to fit within the preferred size maintaining the aspect ratio. Thumbnails are not cached for images that are equal to or smaller than the preferred thumbnail size.</para>\r
     <para>When a cached thumbnail's width and height do not match the preferred size, the thumbnail is regenerated.</para>\r
     <para />\r
index 188f7b3..c2ac03a 100644 (file)
@@ -1870,6 +1870,11 @@ static void config_tab_general(GtkWidget *notebook)
        add_thumb_size_menu(table, 0, 0, _("Size:"));
        add_quality_menu(table, 0, 1, _("Quality:"), options->thumbnails.quality, &c_options->thumbnails.quality);
 
+       hbox = pref_box_new(group, FALSE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE);
+       pref_label_new(hbox, _("Custom size: "));
+       pref_spin_new_int(hbox, _("Width:"), NULL, 1, 512, 1, options->thumbnails.max_width, &c_options->thumbnails.max_width);
+       pref_spin_new_int(hbox, _("Height:"), NULL, 1, 512, 1, options->thumbnails.max_height, &c_options->thumbnails.max_height);
+
        ct_button = pref_checkbox_new_int(group, _("Cache thumbnails"),
                                          options->thumbnails.enable_caching, &c_options->thumbnails.enable_caching);