You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LibVips offers since some time a way to provide a custom source. This is handy since it allows creating adapter for many different input methods e.g S3 byte ranges / streaming.
Unfortunately, the SourceCustom.onRead requires a pointer as the first argument to the handler.
The example on https://www.libvips.org/2019/11/29/True-streaming-for-libvips.html that is in Python shows how ideally that should work. Please note that the file here is only for demonstrative purposes and in a real world scenario that would be something completely dufferent.
Actually, you're right, this is a bit confusing to do in JavaScript. Commit 26aaa0c avoids the need of pointer arguments in these callbacks. I've updated the previous linked gist to reflect this.
This will be in v0.0.11, thanks for reporting this!
LibVips offers since some time a way to provide a custom source. This is handy since it allows creating adapter for many different input methods e.g S3 byte ranges / streaming.
Unfortunately, the SourceCustom.onRead requires a pointer as the first argument to the handler.
The example on https://www.libvips.org/2019/11/29/True-streaming-for-libvips.html that is in Python shows how ideally that should work. Please note that the file here is only for demonstrative purposes and in a real world scenario that would be something completely dufferent.
The text was updated successfully, but these errors were encountered: