-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
formatOptions from JPEGSaveOptions not working. #197
Comments
the argument 'formatOption' does't existe. JPEGSaveOptions(quality=5, embedColorProfile=True, matte=MatteType.NoMatte) |
You can't pass formatOptions as a parameter, you have to set it after the instance is created, so just break that line up like so: jpeg_options = ps.JPEGSaveOptions(quality=12, embedColorProfile=True, matte=MatteType.NoMatte)
jpeg_options.formatOptions = FormatOptionsType.Progressive
save_as = ps.active_document.saveAs(copy_path, jpeg_options, asCopy=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Foremost, I want to thank you for this incredible library. I have a simple question, I'm trying to save a JPEG file, but I'm having trouble setting the format to Progressive, here's my code:
However, I'm getting the following error:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: