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.
- Host: GitHub
- URL: https://github.com/kyamagu/photoshop-connection
- Owner: kyamagu
- License: mit
- Created: 2019-08-15T09:57:43.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2025-09-22T02:40:37.000Z (9 months ago)
- Last Synced: 2025-09-30T18:53:34.544Z (9 months ago)
- Topics: extendscript, photoshop, python
- Language: Python
- Homepage: https://photoshop-connection.readthedocs.io
- Size: 310 KB
- Stars: 23
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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/