Jul-25-2019, 03:12 PM
Thanks DeaD_EyE.
Here is the code in the cited Web page :
Any idea?
Here is the code in the cited Web page :
def edit_File( actionScript, imagePath, saveDir, psApp ): #png save options options = win32com.client.Dispatch('Photoshop.ExportOptionsSaveForWeb') options.Format = 13 # PNG options.PNG8 = True # Sets it to PNG-8 bit #new folder save location folder, filename = os.path.split( imagePath ) filename, ext = os.path.splitext( filename ) filenamePng = filename + ".png" newSave = os.path.join( saveDir, filenamePng ) ##&& check to make sure file does not already exist #open image doc = psApp.Open(imagePath, None) #run action script psApp.DoAction( actionScript, 'WaterMark') #save doc.Export(ExportIn=newSave, ExportAs=2, Options=options) return docI am wondering where I could find the value of options.Format in...
options.Format = 13 # PNGso that I can get JPG instead of PNG... plus the additional options you are evoking...
Any idea?