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

"inner" trim not working in Imagemagick 6 #187

Closed
fmw42 opened this issue Jun 28, 2022 · 1 comment
Closed

"inner" trim not working in Imagemagick 6 #187

fmw42 opened this issue Jun 28, 2022 · 1 comment

Comments

@fmw42
Copy link

fmw42 commented Jun 28, 2022

ImageMagick version

6.9.12-54

Operating system

MacOS

Operating system, version and so on

Monterey on M1 Mac mini

Description

"inner trim" using -define trim:percent-background=0% -trim works fine in Imagemagick 7 but not Imagemagick 6.

Input:

preview_edited_inner6

Imagemagick 6.9.12-54

convert preview_edited_inner6.jpg -background "gray(0)" -fuzz 5% -define trim:percent-background=0% -trim +repage x6.jpg

x6

Imagemagick 7.1.0-39

magick preview_edited_inner6.jpg -background "gray(0)" -fuzz 5% -define trim:percent-background=0% -trim +repage x7.jpg

x7

Steps to Reproduce

See above

Images

No response

@urban-warrior
Copy link
Member

Thanks for the problem report. We can reproduce it and will have a patch to fix it in the GIT main branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://imagemagick.org/download/beta/ by sometime tomorrow.

urban-warrior pushed a commit that referenced this issue Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants