A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://libvips.github.io/pyvips/vsource.html below:

Website Navigation


Source — pyvips 2.2.1 documentation

Source
class pyvips.vsource.Source(pointer)[source]

An input connection.

static new_from_descriptor(descriptor)[source]

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().

static new_from_file(filename)[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().

static new_from_memory(data)[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