EImagingError: Error while loading images from file.... Exception message: Access violation

Issue #7 resolved
Anonymous created an issue

When trying to deskew landscape images on Windows, the error message:

EImagingError: Error while loading images from file "name of file" <format: tif> Exception message: Access violation

appears.

Comments (4)

  1. Marek Mauder repo owner

    Thanks for the sample TIFF.

    I knew that Deskew (Windows build using precompiled LibTiff) built in FPC has problems with some TIFFs but so far what I got in the reports were JPEG compressed TIFFs and I assumed the problem lies somewhere in linking libtiff and jpeglib.

    32bit Windows release was still built with Delphi so it was only reported with 64bit Windows release.

    Miguel Medalha noticed that TIFFs saved by Windows Photo Viewer always fail to load. I could then compare working TIFF and then the same one resaved by WPV. Windows Photo Viewer and probably some others put some extensions in TIFF header which libtiff can handle but issues a warning - and improper handling of this warning caused that AV exception (linking C and Pascal code together in a single exe is full of pitfalls).

  2. Log in to comment