Skip to content

Cannot get ImageMagick to trim wasted alpha space around PNG image #1919

Answered by fmw42
StainlessStlRat asked this question in General
Discussion options

You must be logged in to vote

-trim only removes constant colored regions around the outside. It does not remove transparency. If you want to remove transparency then turn alpha off using -alpha off. On the Mac in Preview, the window background color is gray and the window has a minimum size for which you cannot make it smaller. The window background color outside the image will be the same color as the transparent regions. It does not show a checkerboard pattern like some other tools. So it is hard to know where the image ends and window background starts, if the image is smaller than the minimum windows size. Perhaps that is your issue?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@StainlessStlRat
Comment options

Comment options

You must be logged in to vote
2 replies
@StainlessStlRat
Comment options

@StainlessStlRat
Comment options

Answer selected by StainlessStlRat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants