Author: post
Date: 2010-07-11 13:53:11 +0200 (Sun, 11 Jul 2010)
New Revision: 3477
Modified:
trunk/plugins/meta-tiff/tiff-meta.c
Log:
Use larger previews for decoded Raw previews and discard very small previews.
Modified: trunk/plugins/meta-tiff/tiff-meta.c
===================================================================
--- trunk/plugins/meta-tiff/tiff-meta.c 2010-07-11 11:08:58 UTC (rev 3476)
+++ trunk/plugins/meta-tiff/tiff-meta.c 2010-07-11 11:53:11 UTC (rev 3477)
@@ -1652,7 +1652,9 @@
{
pixbuf = raw_thumbnail_reader(service, meta);
}
-
+ if ( pixbuf && (gdk_pixbuf_get_width(pixbuf) < 10 ||
gdk_pixbuf_get_height(pixbuf) < 10))
+ pixbuf = NULL;
+
return thumbnail_store(pixbuf, meta);
}
@@ -1663,7 +1665,6 @@
if (pixbuf)
{
gdouble ratio;
-
/* Handle Canon/Nikon cropping */
if ((gdk_pixbuf_get_width(pixbuf) == 160) &&
(gdk_pixbuf_get_height(pixbuf)==120))
{
@@ -1716,8 +1717,8 @@
RSFilter *fresample = rs_filter_new("RSResample", fdemosaic);
RSFilter *fcst = rs_filter_new("RSColorspaceTransform", fresample);
- g_object_set(fresample, "width", 128,
- "height", 128,
+ g_object_set(fresample, "width", 256,
+ "height", 256,
"bounding-box", TRUE, NULL);
g_object_set(finput, "filename", service,
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit