plug-ins: fix #8467 "incorrect value RichTIFFIPTC" when loading TIFF ...
created by Adobe Lightroom 5.1
Adobe products are known to write incorrect RichTIFFIPTC tags in TIFF
images.
Since libtiff correctly detects and handles this there is no real need
for end users to be warned. So instead of a warning we will only output
a message to stderr.
(cherry picked from commit 0ad54f863a)
This commit is contained in:
parent
9829679e6d
commit
8f169eb61c
1 changed files with 22 additions and 0 deletions
|
|
@ -204,6 +204,28 @@ tiff_io_warning (const gchar *module,
|
|||
|
||||
va_end (ap_test);
|
||||
}
|
||||
else if (! strcmp (fmt, "Incorrect value for \"%s\"; tag ignored"))
|
||||
{
|
||||
va_list ap_test;
|
||||
const char *stag;
|
||||
|
||||
G_VA_COPY (ap_test, ap);
|
||||
|
||||
stag = va_arg (ap_test, const char *);
|
||||
|
||||
if (! strcmp (stag, "RichTIFFIPTC"))
|
||||
{
|
||||
gchar *msg = g_strdup_vprintf (fmt, ap);
|
||||
|
||||
/* This is an error in Adobe products. Just report to stderr. */
|
||||
g_printerr ("[%s] %s\n", module, msg);
|
||||
g_free (msg);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
va_end (ap_test);
|
||||
}
|
||||
|
||||
/* Workaround for: http://bugzilla.gnome.org/show_bug.cgi?id=131975
|
||||
* Ignore the warnings about unregistered private tags (>= 32768).
|
||||
|
|
|
|||
Loading…
Reference in a new issue