Converting .HEIC to JPEG using imagick in C#

后端 未结 2 1719
长发绾君心
长发绾君心 2021-01-14 09:41

I\'m having trouble in converting heic file to jpeg

I have already tried searching it online, i can find how to write to a folder but not how to get a byte[] of a co

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 10:23

    You need to create a MemoryStream, call .Write() to write the image to the memory stream, then call .ToArray() on the stream to get the bytes it wrote.

提交回复
热议问题