GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - skia-python/skia-python: Python binding to Skia Graphics Library

BranchesTags
Open more actions menu

Latest commit

 

History

1,557 Commits
1,557 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
depot_tools @ 37e5621
depot_tools @ 37e5621
 
 
docs
docs
 
 
notebooks
notebooks
 
 
patch
patch
 
 
relnotes
relnotes
 
 
scripts
scripts
 
 
skia @ 2708a1b
skia @ 2708a1b
 
 
src/skia
src/skia
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
Migration_from_v8x_to_v13x.md
Migration_from_v8x_to_v13x.md
 
 
README.md
README.md
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

Skia python binding

CI PyPI version

Python binding to Skia Graphics Library.

  • Binding based on pybind11.

Install

Binary package is available on PyPI:

pip install skia-python

Supported platforms: Python 3.9-3.15 (CPython) on

  • Linux x86_64, aarch64
  • macOS x86_64, arm64
  • Windows x86_64, arm64 ; arm64 for the windows 11 and Python 3.11-3.15 combination only.

IMPORTANT: Starting v87.9rc1 / v138.0rc1, libEGL.so (from mesa-libEGL, libglvnd, or your graphic card's vendor e.g. NVidia) is required to be present on Linux hosts. This is associated with the general change on Linux from X11 to Wayland, and from GTK3 to GTK4. Firefox started to use it in 2021 (instead of the older libGLX.so), so it is likely newer Linux systems already have it, but please check. skia-python v87.9 / v138.0+ supports hardware acceleration via both GLX (still the default under X11) and EGL (newly added).

For Linux platforms, there must be OpenGL, libEGL and fontconfig installed. Current Ubuntu needs libegl1 (and libegl-mesa0); on older Ubuntu the package names are libglvnd0 and libgl1-mesa-egl:

apt-get install libfontconfig1 libgl1-mesa-glx libgl1-mesa-egl libegl1 libglvnd0 libgl1-mesa-dri

Or:

yum install fontconfig mesa-libGL mesa-libEGL libglvnd-egl mesa-dri-drivers

For unsupported environments, check the build instructions.

Examples

  • Showcase
  • Canvas Overview
  • Canvas Creation
  • Path Overview
  • Paint Overview
  • Python Image I/O
  • Drawing Texts

Documentation

https://skia-python.github.io/skia-python

  • Tutorial

  • Reference

  • For breaking changes and tips on migration from m87: See Migration Guide, also see the detailed changes below, especially README.m116.

  • For information about changes after m116: README.m116, README.m117, README.m118, README.m119, README.m120, README.m121, README.m122, README.m123, README.m124, README.m125, README.m126, README.m127, README.m128, README.m129, README.m130, README.m131, README.m132, README.m133, README.m134, README.m135, README.m136, README.m137, README.m138, README.m139, README.m140, README.m141, README.m142, README.m143, README.m144.

Contributing

Feel free to post an issue or PR.

About

Python binding to Skia Graphics Library

skia-python.github.io/skia-python/

Topics

graphicspythonskiaskia-libraryskia-python-binding

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

333 stars

Watchers

7 watching

Forks

52 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.