In addition to the problem described above, I can't read the TIFF profile. Even after getting all 12 bytes I get the correct size of the profile, but the wrong pointer to the profile itself. Version 3. 17 the profile returned normally. More on this was the discussion here: https://sourceforge.net/p/freeimage/discussion/36111/thread/2510030613/ based on which I can assume that perhaps the problem is still in the wrong interpolation of the data wrapper.
I understand the pictures, you have Macintosh? The error may only appear on the PC. I more think, and if it fails, I will write ticket. Thank you!
I understand the pictures, you have Maсintosh? The error may only appear on the PC. I more think, and if it fails, I will write ticket. Thank you!
I understand the pictures, you have Makintosh? The error may only appear on the PC. More think, and if it fails, I will write ticket. Thank you!
And yet, the postal address specified in the source of the wrapper (Anatoliy Pulyaevskiy (xvel84@rambler.ru)) return an error "recipient address rejected: Blocked".
Errors in the wrapper for Delphi for the FreeImage 3.18
From TestGray16.tif also can't get a profile. Yes, I read exactly 12 bytes. When I change the DLL to version 3. 17, everything starts working. In 3. 18 The profile size is returned correct, and the pointer to its beginning - no. Declaring a function in a wrapper for Delphi: function FreeImage_GetICCProfile(dib: PFIBITMAP): PFIICCPROFILE; {$IFDEF MSWINDOWS}stdcall;{$ELSE}cdecl;{$ENDIF} external FIDLL {$IFDEF WIN32}name '_FreeImage_GetICCProfile@4'{$ENDIF} {$IFDEF MACOS}name '_FreeImage_GetICCProfile'{$ENDIF};...
I wanted to upload a sample image file with the profile, but for some reason not loaded. It is a 16-bit TIFF with grayscale.
I will add. When trying to get a profile from a TIFF, the profile size seems to be returned, but the pointer to the data is returned incorrect! At least, there is no valid data on the returned address, although the address looks correct.
I will add. When trying to get a profile from a TIFF, the profile size seems to be returned, but the pointer to the data is returned incorrect!
Version 3. 18 the FreeImage_GetICCProfile function has stopped returning correct data from TIFF. At 3. 17 it worked. Data from PNG to 3. 18 return correct, but for this in the wrapper for Delphi it is necessary to remove the packed from the records or use the wrapper from 3. 17. Any ideas? P.S.: "FreeImage_GetICCProfile from TIFF return Nil (Delphi 10.2) " - sorry, not Nil, but incorrect values.
Version 3. 18 the FreeImage_GetICCProfile function has stopped returning correct data from TIFF. At 3. 17 it worked. Data from PNG to 3. 18 return correct, but for this in the wrapper for Delphi it is necessary to remove the packed from the records or use the wrapper from 3. 17. Any ideas?