Target
¶
An output connection.
Make a new target to write to a file descriptor (a small integer).
Make a new target that is attached to the descriptor. For example:
target = pyvips.Target.new_to_descriptor(1)
Makes a descriptor attached to stdout.
You can pass this target to (for example) write_to_target()
.
Make a new target to write to a file.
Make a new target that will write to the named file. For example:
target = pyvips.Target.new_to_file("myfile.jpg")
You can pass this target to (for example) write_to_target()
.
Make a new target to write to an area of memory.
Make a new target that will write to memory. For example:
target = pyvips.Target.new_to_memory()
You can pass this target to (for example) write_to_target()
.
After writing to the target, fetch the bytes from the target object with target.get(“blob”).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4