Hi,
bah.freeimage crashes when loading TIFF images for me. It seems TIFF saving is also broken.
Anybody else getting this?
bah.freeimage crashes when loading TIFF images for me. It seems TIFF saving is also broken.
Anybody else getting this?
SuperStrict Import bah.freeimage Graphics 640,480 ' ' Crashes FreeImage Local s:TStream = ReadFile("3712_sten01_front.tif") If s Local f:TFreeImage = TFreeImage.CreateFromStream(s) CloseStream s Local p:TPixmap = f.GetPixmap() DrawPixmap(p,0,0) Flip WaitKey() EndIf ' ' Won't save ... reports: data is invalid Local p:TPixmap = CreatePixmap(512,512,PF_RGBA8888) Local f:TFreeImage = TFreeImage.CreateFromPixmap(p) If f If f.Save("test.tif",FIF_TIFF) = False Print "File did not save" EndIf EndIfResaving the file from XnView cures the problem, and the test.tif loads without problems. I have no idea what the problem is.