How to identify which operations can operate with images opened in sequential mode ? #3963
kipcole9
started this conversation in
Help wanted
Replies: 1 comment
-
Hi @kipcole9, I think you need the https://www.libvips.org/API/current/VipsOperation.html#vips-operation-get-flags It's what the vips CLI uses to decide whether to open images in seq mode.
You could AND all flags in a pipeline. It's not 100% though --- whether or not something will work depends on a lot of factors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand the principle, but it's not always easy to work out if an operation or composition of operations can work with an image opened in sequential mode.
Is there some documentation of which operations will work in sequential mode, or are heuristics and experimentation the order of the day?
Today with the Elixir Image library I leave the decision in the hands of the developer. But I'm working on automated imaging pipelines for web applications so I will be able to force an operation order and hoping as a result I can determine in advance if I can open the image in sequential mode.
Thanks for any guidance.
Beta Was this translation helpful? Give feedback.
All reactions