🧪 Version 0.0.8 is our first alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for load_image

Load an image file. This is part of the reference section.

Purpose

Load an image from the local file system or URL.

Example

Load an image from the file reference.png.
image = sketch.load_image('reference.png')

Arguments

  • path: The location from which the file should be read.

Availability

Available for all platforms. On static and app renderers, will interpret path as a local file path using the operating system's conventions. For web, it will interpret path as a URL. Filenames like "example.png" will assume the same directory.

Other examples

See also in reference