An open API service indexing awesome lists of open source software.

https://github.com/kyamagu/photoshop-connection

Python package to remotely execute ExtendScript in Adobe Photoshop.
https://github.com/kyamagu/photoshop-connection

extendscript photoshop python

Last synced: 4 months ago
JSON representation

Python package to remotely execute ExtendScript in Adobe Photoshop.

Awesome Lists containing this project

README

          

Photoshop connection
====================

Python package to remotely execute ExtendScript_ in Adobe Photoshop.

.. _ExtendScript: https://www.adobe.com/devnet/photoshop/scripting.html

.. image:: https://github.com/kyamagu/photoshop-connection/actions/workflows/ci.yaml/badge.svg?branch=main&event=push
:target: https://github.com/kyamagu/photoshop-connection/actions/workflows/ci.yaml
:alt: Build
.. image:: https://readthedocs.org/projects/photoshop-connection/badge/?version=latest
:target: https://photoshop-connection.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/photoshop-connection?color=success
:target: https://pypi.org/project/photoshop-connection/
:alt: 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
-------

.. code-block:: bash

pip install photoshop-connection

Usage
-----

Example:

.. code-block:: python

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.

.. _documentation: https://photoshop-connection.readthedocs.io/en/latest/