Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.52 KB

README.rst

File metadata and controls

51 lines (34 loc) · 1.52 KB

Photoshop connection

Python package to remotely execute ExtendScript in Adobe Photoshop.

Build Documentation Status PyPI

Prerequisites

Photoshop must be configured to accept remote connection.

Open the plug-ins dialog from the Preferences > Plug-ins... menu in Photoshop, and check Enable Remote Connections option. Enter password to the given field, and click OK button and restart Photoshop.

Photoshop must be launched and running for the package to work.

Install

pip install photoshop-connection

Usage

Example:

from photoshop import PhotoshopConnection

with PhotoshopConnection(password='secret') as conn:
    conn.execute('alert("hello")')
    jpeg_binary = conn.get_document_thumbnail()

Check out documentation for details.