Imaging.Heif icon indicating copy to clipboard operation
Imaging.Heif copied to clipboard

Constructor to read file from bytes

Open suou-ryuu opened this issue 1 year ago • 5 comments

Currently the only constructor is new HeifImage(<someFilePath>) however my use-case is to process an image downloaded via HTTP, so I only have access to the image bytes. Would it be possible to add a constructor to the effect of new HeifImage(<someByteArray>)?

suou-ryuu avatar Jun 07 '23 13:06 suou-ryuu

@suou-ryuu this is a great recommendation. I believe the best overall solution here would be to allow you to pass a Stream as that matches the typical structure.

Let us review

mitchelsellers avatar Jun 07 '23 15:06 mitchelsellers

@mitchelsellers Sorry to pester, is there any update on this?

suou-ryuu avatar Jun 10 '23 10:06 suou-ryuu

I will look at addressing this in the coming week

mitchelsellers avatar Jun 10 '23 14:06 mitchelsellers

Brilliant, thank you. And sorry for being pushy

suou-ryuu avatar Jun 10 '23 14:06 suou-ryuu

@mitchelsellers Sorry to bug you again. Is there any update on this?

(I've tried to get the library set up locally (I figured I'd implement it myself and submit a PR) but I'm having compilation issues with CMAKE)

suou-ryuu avatar Jun 25 '23 11:06 suou-ryuu