-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wishlist: Read/Save from Stream on Pix #219
Comments
I don't think this is possible as the in memory streaming (i.e. pixReadMemPng()) is not available on windows. That being said most of the api's do support loading a Pix from an in memory array provided you know the image format (i.e. if it's a Tiff or Jpeg etc). Obviously this is not as efficient as loading from a stream but might be the best compromise. |
Hi Charles, Kind regards, Helgard Wagener |
The need for reading from stream/byte array is even more essential now that the package supports .NET Core. Understandably none of the Another option is to use the |
I just enabled |
I was thinking of splitting of the System.Drawing (i.e Bitmap) support into
a separate package might be the way to go here. It should be possible to
target it at System.Drawing.Common for .Net core support as you suggest.
Direct support for reading from a .net stream is probably a no go as
Leptonica understandable doesn't support this 🙂
…On Wed., 26 Dec. 2018, 21:53 Santosh Patil ***@***.*** wrote:
I just enabled BitmapToPixConverter using System.Drawing.Common
<https://www.nuget.org/packages/System.Drawing.Common/4.5.1> package and
it works great so this definitely is one way to go.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#219 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPzyHLLmMU6pvnzPUF02NM_kyQboy9jks5u81UogaJpZM4GVSH0>
.
|
It would be great if a few of the methods from https://tpgit.github.io/Leptonica/pngio_8c.html were exposed, such as reading/saving to streams for Pix. That way there's no need to create lots of files on disk during normal operations.
The text was updated successfully, but these errors were encountered: