Source
¶
An input connection.
Make a new source from a file descriptor (a small integer).
Make a new source that is attached to the descriptor. For example:
source = pyvips.Source.new_from_descriptor(0)
Makes a descriptor attached to stdin.
You can pass this source to (for example) new_from_source()
.
Make a new source from a filename.
Make a new source that is attached to the named file. For example:
source = pyvips.Source.new_from_file("myfile.jpg")
You can pass this source to (for example) new_from_source()
.
Make a new source from a memory object.
Make a new source that is attached to the memory object. For example:
source = pyvips.Source.new_from_memory("myfile.jpg")
You can pass this source to (for example) new_from_source()
.
The memory object can be anything that supports the Python buffer or memoryview protocol.
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