Convert an HEIC File into a PNG file

Hi

I’m trying to convert an HEIC File into a PNG file, I understand than I need to use “Aspose.Imaging.HEIC.Adapter 26.1.0” but it does not work I’ve got the following error:

Unable to load the file or assembly ‘Aspose.Imaging.HEIC.Adapter, Version=26.1.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. An assembly with a strong name is required.

Why Aspose.Imaging.HEIC.Adapter does not have a strong name like the other Aspose component?

Do you have another solution for converting an HEIC File into a PNG file?

Thank you for your support.
Best regards,

@ISIWARE, Hi! Could you tell me the version of .Net, and also show me the project file in which the adapter is connected?

Hi,

We are using .NET Framework 4.8

For information, the HEIC.Adapter is used in an internal framework that is integrated into my solution, so the Aspose.Imaging.HEIC.Adapter is integrated as a DLL (it’s the same thing for Aspose.Imaging and it works perfectly fine). Then it’s used in a project that needs a strong name.

For the code I’ve used this page as an example: Convert HEIC to PNG via C# | products.aspose.com

@ISIWARE Thank you for the information provided. We’ve detected a problem. We’ll fix it as soon as possible.

@ISIWARE
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): IMAGINGNET-8029

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@ISIWARE, A new version of the NuGet package is ready. Please try version 26.4, and if you encounter any issues, feel free to contact us.
https://www.nuget.org/packages/Aspose.Imaging.HEIC.Adapter

Hi

I’ve updated Aspose.Imaging.NET to the version 26.5.0 because It’s fix the bug “IMAGINGNET-7989”. But now “Aspose.Imaging.HEIC.Adapter” doesn’t work, I’ve got the following error:

System.IO.FileLoadException: 'Unable to load the file or assembly ‘Aspose.Imaging, Version=26.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. The found definition of the assembly manifest does not match the assembly reference. (HRESULT exception: 0x80131040) ’

If I comment “Imports Aspose.Imaging.HEIC.Adapter” it works fine. Do you have a solution?

Thank you for your support.
Best regards,

@ISIWARE Hello! We’ll look into this and get back to you as soon as possible. In the meantime, please try reinstalling the HEIC adapter.

@ISIWARE, Hi
The Aspose.Imaging.HEIC.Adapter package supports working with later versions of Aspose.Imging library.
I’ve attached a test project that implements this. If you have any additional questions, please feel free to contact us.
HeicTest.zip (2.8 MB)

Hi

Effectively, it works in a simple C# or Vb project, but it seems that I can’t make my code work with the Aspose.Imaging.NET 26.5.0 I’ve still got the same error. For now, I’ve returned Aspose.Imaging to the version 26.4.0 and it works fine.

For information, all our code is in VB, we are using .NET Framework 4.8, Aspose.Imaging and the HEIC.Adapter are used in an internal framework that is integrated into my solution, so the Aspose.Imaging.HEIC.Adapter and Aspose.Imaging are integrated as a DLL and then imported as in my solution inside some VB file, but when I call my class containing Aspose.Imaging and Aspose.Imaging.HEIC.Adapter I’ve got the error mention in my previous message.

In my “.vbproj” I have this:

26.5.0

And in my packages.lock.json :
“Aspose.Imaging”: {
“type”: “Direct”,
“requested”: “[26.5.0, )”,
“resolved”: “26.5.0”,
“contentHash”: “fmDk6SiN4RZgYnlo3J1nfN9u/wDwCpTgLVOY1P73pU2COgE6ZNU4WgEp2hYsjOfHaTMsLteaeJYhT6uH8H0JpA==”
},
“Aspose.Imaging.HEIC.Adapter”: {
“type”: “Direct”,
“requested”: “[26.4.0, )”,
“resolved”: “26.4.0”,
“contentHash”: “YsiwuFSv39epHQA3Aw8BUkLjz/H5LHP1ZI70v93NW6JCzIqQQe5YKnS9URF2+6umq+FHp/UMeklAUsFfCqg5JA==”,
“dependencies”: {
“Aspose.Imaging”: “26.4.0”,
“Openize.Heic”: “26.4.0”
}
},
Is it normal that in the dependencies Aspose.Imaging is at 26.4.0? Or do you think the way we use Aspose could cause the problem?

Thank you for your support.
Best regards,

@ISIWARE,
I’ll check how it works on VB and let you know.

@ISIWARE,
Hi
I added a similar project to VB, and it works.
Perhaps you still have links to the previous version of the Aspose.Imaging package somewhere (for example, in packages.config)?
If you can’t figure it out, feel free to message us — we’ll be happy to help.
vbHeicTest.zip (2.8 MB)