kyamagu / photoshop-connection Goto Github PK
View Code? Open in Web Editor NEWPython package to remotely execute ExtendScript in Adobe Photoshop.
Home Page: https://photoshop-connection.readthedocs.io
License: MIT License
Python package to remotely execute ExtendScript in Adobe Photoshop.
Home Page: https://photoshop-connection.readthedocs.io
License: MIT License
The current travis setup is outdated. Should migrate to:
Hello,
I have been tested succesfully uploaded photoshop file from client to remote server and it is correct file path show to me. But open_document
does not work.
My codes
from photoshop import PhotoshopConnection
with PhotoshopConnection(password='123456', host="194.31.59.56") as conn:
uploadedPath = ""
with open('test.psd', 'rb') as f:
uploadedPath = conn.upload(f.read(), suffix='.psd')
print(uploadedPath)
conn.open_document(uploadedPath)
Return errors like this;
Reloaded modules: photoshop, photoshop.protocol, photoshop.crypto, photoshop.api
Error: Unknown JavaScript error
Traceback (most recent call last):
File "C:\_my-mind\_codes\photoshop-connect\photoshop\__init__.py", line 188, in _transaction
yield txn
File "C:\_my-mind\_codes\photoshop-connect\photoshop\__init__.py", line 222, in execute
response = txn.receive(timeout=timeout)
File "C:\_my-mind\_codes\photoshop-connect\photoshop\__init__.py", line 44, in receive
raise response
File "C:\_my-mind\_codes\photoshop-connect\photoshop\__init__.py", line 66, in dispatch
'Error: %s' % response['body'].decode('utf-8', 'ignore')
RuntimeError: Error: Unknown JavaScript error
C:\Users\ADMINI~1\AppData\Local\Temp\2\tempdata8.tmp.psd
Traceback (most recent call last):
File "C:\_my-mind\_codes\photoshop-connect\untitled0.py", line 17, in <module>
conn.open_document(uploadedPath)
File "C:\_my-mind\_codes\photoshop-connect\photoshop\__init__.py", line 306, in open_document
return self.execute(self._render('open.js.j2', locals()))
File "C:\_my-mind\_codes\photoshop-connect\photoshop\__init__.py", line 222, in execute
response = txn.receive(timeout=timeout)
File "C:\_my-mind\_codes\photoshop-connect\photoshop\__init__.py", line 44, in receive
raise response
File "C:\_my-mind\_codes\photoshop-connect\photoshop\__init__.py", line 66, in dispatch
'Error: %s' % response['body'].decode('utf-8', 'ignore')
RuntimeError: Error: Unknown JavaScript error
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.