I have run into an unexpected issue using Aspose.Imaging library. I wanted to remove the metadata of a BMP image and as part of this process, I intended to set its XmpData property. However, after I had loaded the input file as an “Aspose.Imaging.Image” type, casted it to a “RasterCachedImage” and set its XmpData, the following exception occured: “The method or operation is not implemented”.
I have tried the same solution for JPEG, PNG, GIF and TIFF images and it worked. Also, according to the documentation, it should work for BMP as well.
OS: Ubuntu 18.04, Windows Server 2019 (tried on both, issue was the same)
DLL: Aspose.Imaging for .NET 20.12 (latest stable)
License: tried with licensed and unlicensed product as well, the issue was the same
I attached a simple (unlicensed) zipped app so that you can reproduce the issue. It contains a test file too, so you only have to load the solution file and run the project. It will print the error message to the console.
I would be grateful if you could help me with this issue. Looking forward to hearing from you soon!
All the best,
cannot_set_xmpdata_of_bmp_image.zip (18.7 KB)