Visitar URL original
Added "transparency" argument to EpsImagePlugin load() by radarhere · Pull Request #5620 · python-pillow/Pillow · GitHub
Skip to content

Added "transparency" argument to EpsImagePlugin load() - #5620

Merged
mergify[bot] merged 4 commits into
python-pillow:masterfrom
radarhere:eps
Aug 6, 2021
Merged

mergify[bot] merged 4 commits into
python-pillow:masterfrom
radarhere:eps

Conversation

@radarhere

@radarhere radarhere commented Jul 18, 2021 •

Copy link
Copy Markdown
Member

Resolves #5619

At the moment, EpsImagePlugin can load images at different scales like so

with Image.open(FILE1) as image1_scale2:
image1_scale2.load(scale=2)

This PR adds another argument, "transparency",

with Image.open(FILE1) as image12: 
     image1.load(transparency=True)

to switch from "ppmraw"

"-sDEVICE=ppmraw", # ppm driver

to "pngalpha", generating an RGBA image with a transparent background, instead of an RGB image with a white background.

@hugovk hugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also add this to release notes.

@hugovk hugovk added the automerge Automatically merge PRs that are ready label Aug 6, 2021
@mergify
mergify Bot merged commit 43785a3 into python-pillow:master Aug 6, 2021
@radarhere
radarhere deleted the eps branch August 6, 2021 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge PRs that are ready Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EPS files are loaded without transparency

2 participants