Okay, I see that fcl-image has TIFF handling capabilities, I'll give it a try.
Does anyone have experience using TIFFs with fcl-image?
Hey Y'AllI used the example from https://wiki.freepascal.org/fcl-image, but it seems to have a problem. Code: Pascal [Select][+][-] uses ...fpImage, fpReadJpeg, fpReadBMP, fpReadPNG, fpReadGIF, fpReadPCX, fpReadTIFF... ...... function GetImageSize(const AFileName: String; out ASize: TPoint): Boolean;var stream: TStream; readerClass: TFPCustomImageReaderClass;begin Result := false; ASize := Point(-1, -1); stream := TFileStream.Create(AFileName, fmOpenRead); try readerClass := TFPCustomImage.FindReaderFromStream(stream); if readerClass <> nil then begin ASize := readerClass.ImageSize(stream); Result := true; end; finally stream.Free; end;end; ...... procedure TForm1.BitBtn2Click(Sender: TObject);var asv: TPoint;begin if GetImageSize('/media/xiy0616/Data/xyLazarusPrj/Test/DisplayPicture/000001.tif', asv) then Memo1.Lines.Add(IntToStr(asv.X) + ',' + IntToStr(asv.Y));end; ...... I get -1, -1 in memo1.It shouldn't be returning -1, should it?Does anyone have experience using TIFFs with fcl-image?