![]() Obj (list or object width _array_interface_ or _array_) – The behavior for input objects with different dimensions is summarized If _array_interface_ is not available, _array_ is used as a For details about the array interface, see The Array Error – classmethod new_from_array ( obj, scale = 1.0, offset = 0.0, interpretation = None ) ¶Ĭreate a new Image from a list or an array-like object.Īrray-like objects are those which define _array_interface_ or What to subtract from each pixelĪfter convolution. What to divide each pixel by afterĬonvolution. ParametersĪrray ( list ]) – Create the image from these values. These image are useful with the libvipsĬonvolution operator nv(). Error – static new_from_list ( array, scale = 1.0, offset = 0.0 ) ¶Ĭreate an image from a list or list of lists.Ī new one-band image with BandFormat 'double' pixels isĬreated from the array. By default, libvips willĪttempt to read everything it can from a damaged image. Use "" for no options.įail ( bool) – If set True, the loader will fail with an error on theįirst serious error in the image. Options ( str) – Load options as a string. Parametersĭata ( array, bytearray, bytes, buffer) – The memory object to Object can be anything that supports the Python buffer protocol. Loaded from the memory object rather than from a file. This behaves exactly as new_from_file(), but the image is Error – static new_from_buffer ( data, options, ** kwargs ) ¶ Will attempt to read everything it can from a damaged image. Loaded via memory by default, use VIPS_DISC_THRESHOLD toĪccess ( Access) – Hint the expected access pattern for the image.įail ( bool) – If set True, the loader will fail with an error on Notes on where temporary files are created. Memory ( bool) – If set True, load the image via memory rather than ![]() Vips_filename ( str) – The disc file to load the image from, withĪll loaders support at least the following options: Keyword Arguments Pixels will only be decompressed when they are needed. Loading is fast: only enough of the image is loaded to be able to fill At the command-line to see a summary of the available options for the ![]()
0 Comments
Leave a Reply. |