Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TIFF support broken in multiple programs.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
tkzv
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2014
Posts: 83

PostPosted: Sun Jul 10, 2016 5:45 pm    Post subject: TIFF support broken in multiple programs. Reply with quote

I didn't open any TIFF files since 2014. Today I tried to open one and couldn't. The problem seems the same in all programs — they can't read the header. qcheck found no problems with those packages. Reemerging them did not help.

Nomacs reports: "Sorry, I could not load 22.tif", no extra errors in the console.

ImageMagic:
$ convert 22.tif 22.jpg
convert: improper image header `22.tif' @ error/tiff.c/ReadTIFFImage/1214.
convert: no images defined `22.jpg' @ error/convert.c/ConvertImageCommand/3257.

NetPBM:
$ tifftopnm 22.tif > 22.pnm
tifftopnm: PHOTOMETRIC tag is not in Tiff file. TIFFGetField() of it failed.
This means the input is not valid Tiff.

Gimp displays a messagebox:
"Could not get photometric from '.../22.tif'. Image is CCITT compressed, assuming min-is-white"
The images are white on black, and the resolution seems much lower than I recall.

media-gfx/gimp-2.8.14-r1
media-libs/netpbm-10.66.00
media-gfx/imagemagick-6.9.4.6
media-gfx/nomacs-3.2.0
media-libs/tiff-4.0.3-r6 or media-libs/tiff-4.0.6

emerge --info: http://pastebin.com/CNyEJubF

The file works in media-gfx/gpicview-0.2.4

One of the TIFF files: ftp://ftp.radio.ru/pub/arhiv/1999/01/22.tif
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Sun Jul 10, 2016 11:30 pm    Post subject: Reply with quote

Probably all these programs use libtiff. I'm currently using media-libs/tiff-4.0.6.

I tried xv on this file and xv reported an issue with this TIFF (PhotometricInterpolation tag is missing) but eventually opened it (looks like a russian electronics magazine page). So it looks like it may be a problem with the file and not necessarily the tools.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
tkzv
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2014
Posts: 83

PostPosted: Mon Jul 11, 2016 12:31 am    Post subject: Reply with quote

A few years ago some command line converter, most likely from ImageMagic or NetPBM (don't remember), worked with this file. Now they don't. Could it be that libTIFF became stricter with not-quite-correct images?

Also, what about the resolution? GpicView and libMagic/file report 778x1078 for this image, but other issues on the site have higher resolution. Could the image be displayed with loss of some horizontal and vertical lines? (I can see that the edges are present.)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Mon Jul 11, 2016 1:20 am    Post subject: Reply with quote

It might very well be more strict with files now.

xv also uses libtiff, I suspect that netpbm/imagemagick are simply failing with warnings.

GIMP also reports the same warning but also opens. It reports 778x1078. Quality is not great. The warning seems to imply it doesn't know what the base color really is, and GIMP says it's a white background with black text. XV is reporting a black background with white text...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum