Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[screenshot.py] Remove Pillow image library dependency and update requirements.txt #357

Copy link
Copy link
@cztomczak

Description

@cztomczak
Issue body actions
  1. There are already functions in CEF that can be used for converting paint buffer to PNG image. See the Image object in API reference. Need to expose two new methods: CreateImage and AddBitmap. This would get rid of PIL dependency and would work on all Pythons without problems. Or a better idea would be to expose new method on the PaintBuffer object: GetImage. Also while at it rename PaintBuffer methods: GetIntPointer --> GetPointer and GetString --> GetBytes.

  2. The PIL image library is only available for Python 2.7. Looks like Python 3 is not supported. This library was abandoned a lot time ago. However there is a new successor called "Pillow": https://pypi.python.org/pypi/Pillow/4.1.0 . It is better to use CEF functions and get rid of PIL dependency.

  3. After this is done update tools/run_examples.py to run screenshot.py as well.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.