return FALSE;
push_handlers ();
+
+#ifdef G_OS_WIN32
+{
+ wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, error);
+ if (wfilename == NULL) {
+ return FALSE;
+ }
+
+ tiff = TIFFOpenW (wfilename, "r");
+
+ g_free (wfilename);
+}
+#else
tiff = TIFFOpen (filename, "r");
+#endif
if (tiff) {
guint32 w, h;
TIFFReadRGBAImageOriented (tiff_document->tiff,
width, height,
(uint32 *)pixels,
- orientation, 1);
+ orientation, 0);
pop_handlers ();
/* Convert the format returned by libtiff to
TIFFReadRGBAImageOriented (tiff_document->tiff,
width, height,
(uint32 *)pixels,
- ORIENTATION_TOPLEFT, 1);
+ ORIENTATION_TOPLEFT, 0);
pop_handlers ();
scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,