sylvain.fe...@ville-ge.ch wrote:
Some little progress :
Problematic code modified :
psApp.DoAction('jpg_q8','Default Actions') # where 'jpg_q8' is the recorded action and 'Default Actions' the folder where the action is saved.

Right -- the "action set" in Photoshop terms.


No more error message, but... no result : my tif files are not transformed to jpg files.

The Python part is now working.  WE have no way of knowing what your Photoshop action is doing.  Is it actually doing the save, or do you need to call psApp.Export?

And, by the way, if ALL you need to do is convert TIF to JPG, you certainly do not need to launch the Photoshop behemoth for that. Just use pip to install "pillow", the Python Imaging Library, and all you need is this:

    from PIL import Image
    Image.open('myfile.tif').save('myfile.jpg')

--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to