Skip to content
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

FR: Transparent backgrounds using clipping path #242

Open
1 of 3 tasks
metamachineco opened this issue Oct 19, 2023 · 0 comments
Open
1 of 3 tasks

FR: Transparent backgrounds using clipping path #242

metamachineco opened this issue Oct 19, 2023 · 0 comments

Comments

@metamachineco
Copy link

  • bug report
  • feature request
  • general question

Description

We work with product images that have a (photoshop) clipping path (Common when used in printed media).
These are most of the time jpeg's. It would be nice to have a transform that takes these jpeg's, make the background transparent (based on the clipping path) and save them as png.

I've experimented with Imagick and these command do the trick.

Process a single file

magick test.jpg -clip -alpha opaque test.png

Batch process a folder

magick mogrify -clip -alpha opaque -format png *.jpg

I've attached a couple images with a clipping path if you would like to consider this FR and do some testing.
test
test2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant