During the batch upload of NYPL TIFF images (several thousand successful uploads so far), I have started getting a series of bad TIFF errors when attempting to batch upload NYPL's collection of American popular songs. This is odd because the TIFF looks okay when downloaded manually. It is doubly odd because I use Python Image Library's tiffinfo call to get information about the mode, size, compression, dpi and ICC profile and that works fine locally, yet it is a tiffinfo call at the WMF side that rejects the upload. Perhaps the tiffinfo exec needs an update or is this a problem with the source encoding and so they should not be uploaded?
I get a similar file verification error when attempting to upload my locally stashed TIFF, using Rillke's chunked uploader, presumably the same verification routine is rejecting the file.
Example file:
Source: NYPL digital collections 'All aboard for Podunk'
Error msg using upload via API:
Uploading file to commons:commons via API.... {u'servedby': u'mw1125', u'error': {u'info': u"This file did not pass file verification: The uploaded file contains errors: tiffinfo command failed: '/usr/bin/tiffinfo' '/tmp/r0fzoW' 2>&1", u'*': u'See http://commons.wikimedia.org/w/api.php for API usage', u'code': u'verification-error', u'details': [u'tiff_bad_file', u"tiffinfo command failed: '/usr/bin/tiffinfo' '/tmp/r0fzoW' 2>&1"]}}
Local use of tiffinfo with PIL gives:
Image mode: RGB Image size: (3274, 4543) Image info: compression raw Image info: dpi (300, 300) Image info: icc_profile KCMSmntrRGB XYZ acspMSFTKODAROMMKODAcprtHdescwtptrTRCgTRCbTRCrXYZgXYZbXYZdmndndmddmmodtextCopyright c Eastman Kodak Company 1999 all rights reserveddescProPhoto RGBProPhoto RGBProPhoto RGBXYZ curvXYZ 4IXYZ XYZ descKODAKKODAKKODAKdescReference Output Medium MetricROMM Reference Output Medium MetricROMM Reference Output Medium MetricROMM mmod ...