Skip to content

kyamagu/photoshop-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.