-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Percentage -border in x dimension adds one pixel border in y dimension #2978
Comments
I confirm this bug with IM v6.9.9-50 and v7.0.8-64. |
Thanks for the problem report. We can reproduce it and will have a patch to fix it in the GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow. |
I downloaded and built ImageMagick 7.0.10-53 from source and this appears to be fixed. Thanks! |
2020-12-27 7.0.10-54 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-54 GIT revision 18... 2020-12-27 7.0.10-54 Dirk Lemstra <dirk@lem.....org> * replaced jxl coder with an implementation that uses the jpeg-xl reference library. * added -define trim:edges=(north,east,south,west) that can be used to trim a single or multiple edges. 2020-12-25 7.0.10-54 <quetzlzacatenango@image...> * enable reading of a certain grayscale TIFF image. * support HEIC depth masks (reference ImageMagick/ImageMagick#3040). * validate pixel cache offsets (reference https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29039). 2020-12-24 7.0.10-53 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-53 GIT revision 18083:3b141f557:20201224 2020-12-20 7.0.10-53 <quetzlzacatenango@image...> * CSS colors no longer require commas. * eliminate possible arthimetic overflow (reference https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28849) * support display-p3, Adobe-98, and Pro-photo colorspaces * read/write 1024 colors Sixel images (reference ImageMagick/ImageMagick#3018). 2020-12-19 7.0.10-52 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-52 GIT revision 18057:1f5bab30b:20201219 2020-12-19 7.0.10-52 <quetzlzacatenango@image...> * return alpha bytes with stream utility (reference ImageMagick/ImageMagick#2862). * percentage -border in x no longer adds one pixel border in y (reference ImageMagick/ImageMagick#2978). 2020-12-18 7.0.10-51 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-51 GIT revision 18052:475508769:20201218 2020-12-17 7.0.10-51 <quetzlzacatenango@image...> * reduce time to identify PDF/PS/XPS/PCL image width/height (reference ImageMagick/ImageMagick#2993). 2020-12-16 7.0.10-50 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-50 GIT revision 18046:83c162886:20201216 2020-12-15 7.0.10-50 <quetzlzacatenango@image...> * revert patch to ready gray alpha TIFF image. 2020-12-14 7.0.10-49 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-49 GIT revision 18040:7976abf6e:20201214 2020-12-13 7.0.10-49 <quetzlzacatenango@image...> * correct previous patch to read planar RGB TIFF images. 2020-12-10 7.0.10-48 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-48 GIT revision 18026:4646e5fd1:20201210 2020-12-09 7.0.10-48 <quetzlzacatenango@image...> * Repair unit test failures (reference ImageMagick/ImageMagick#2959). 2020-12-09 7.0.10-47 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-47 GIT revision 18020:6f1ee6104:20201209 2020-12-06 7.0.10-47 <quetzlzacatenango@image...> * support YAML image format. * use generic TIFF read method for LZW-compressed strips (reference ImageMagick/ImageMagick#2935).
Prerequisites
Description
Specifying a percentage
-border
value (e.g.10%
) in thex
dimension adds a one pixel border in they
dimension when ay
-value is not specified (or zero). Using non-percentages works fine and does not add a border.In the opposite direction (e.g.
0x10%
) works fine and does not add a horizontal border.Note that this is inside a Docker container for use as an AWS Lambda layer. Every other build I've tried has worked fine.
Still, this isn't the kind of issue I expected to run into, because it kind of just seems like a rounding error or something. I think perhaps this build is missing some core piece somehow?
Steps to Reproduce
Input (black square):
System Configuration
Compiled inside this Docker container: https://github.com/serverlesspub/imagemagick-aws-lambda-2
It builds libopenjp2, libwebp, ligtiff, libjpeg, bzip2 and libpng from source.
Here are the package config flags:
The default version from the apt repository (at least the one on my host machine) works fine, as does the latest binary from imagemagick.org. It seems to only be this build inside the docker container.
Any guidance would be appreciated.
The text was updated successfully, but these errors were encountered: