View Issue Details

IDProjectCategoryView StatusLast Update
0035976LazarusLCLpublic2019-08-17 12:39
ReporterChris RordenAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformMacBook 2012 Retina 13"OSDarwinOS Version10.11.6
Product Version2.0.3 (SVN)Product Build61714 
Target VersionFixed in Version 
Summary0035976: Error with some PackBits TIFF images
DescriptionHere is a simple TIFF image with planar configuration and pack bits that does not load with Lazarus.

id 100 type 3 n 1 = 91
id 101 type 3 n 1 = 58
id 102 type 3 n 3 = 15980
id 103 type 3 n 1 = 1
id 106 type 3 n 1 = 2
id 111 type 4 n 3 = 15998
id 115 type 3 n 1 = 3
id 116 type 3 n 1 = 58
id 117 type 4 n 3 = 15986
id 11C type 3 n 1 = 2
id 153 type 3 n 3 = 16010
Steps To Reproduce
This code will generate the exception "number of StripCounts is wrong at position 16010"


 pic := TPicture.create;
 try
    pic.Loadfromfile(fnm);
 except
   pic.free;
   exit;
 end;
 ...
 pic.free
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

Chris Rorden

2019-08-17 12:00

reporter  

rgb_PACKplanar.tif (16,016 bytes)

Chris Rorden

2019-08-17 12:39

reporter   ~0117714

Here are several variations of the same image with RGB/RGBA, and compression (none, LZW, Z, PackBits) adjusted to validate TIFF reading. All variations made with LibTIFF (https://www.mathworks.com/help/matlab/ref/tiff.html) and all open with MacOS Preview application.

TIFFs.zip (10,895 bytes)

Issue History

Date Modified Username Field Change
2019-08-17 12:00 Chris Rorden New Issue
2019-08-17 12:00 Chris Rorden File Added: rgb_PACKplanar.tif
2019-08-17 12:39 Chris Rorden File Added: TIFFs.zip
2019-08-17 12:39 Chris Rorden Note Added: 0117714