Any image format to JP2 image conversion using NetVips in C#

-3

I have downloaded NetVips in my .net application. I want to convert an image to JP2 image using NetVips in C#. But I am getting error as follows:

"Unable to load DLL 'libvips-42.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

Please help me. Thanks.

c#
jpeg2000
vips
asked on Stack Overflow Jul 6, 2020 by B Roy • edited Jul 6, 2020 by B Roy

1 Answer

0

If everything has been configured correctly, it should just be:

in.WriteToFile("some-file-name.jp2")

netvips uses imagemagick to write extra formats like jpeg2000, and imagemagick uses openjpeg to write jp2 files. Therefore if it doesn't work, either your netvips hasn't been built with imagemagick write support, or your imagemagick hasn't been configured with openjpeg support.

You'd need to investigate.

answered on Stack Overflow Jul 6, 2020 by jcupitt

User contributions licensed under CC BY-SA 3.0