-
-
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
duplicate operator: inverse range parameter not working for IM7 #3113
Comments
The example shown works fine with IM v7.0.8-64:
But it fails with v7.0.10-45:
So it is a bug introduced between these versions. |
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 confirm that 7.0.10-58 fixes the bug. Thanks @urban-warrior for your great work! |
https://build.opensuse.org/request/show/864042 by user pgajdos + dimstar_suse - update to 7.0.10.58: * identify the convex hull and minimum bounding box attributes of an image with the -define identify:convex-hull=true define. * set the quality to 100 to produce lossless HEIC images (reference ImageMagick/ImageMagick#3116). * properly identify SVG images (reference ImageMagick/ImageMagick#3117). * duplicate operator: inverse range parameter working again (reference ImageMagick/ImageMagick#3113). * Fix rounding error for CSS colors on i686 (reference https://tracker.debian.org/pkg/imagemagick). * additional checks to prevent integer overflow. * Fix rounding error for CSS colors (reference ImageMagick/ImageMagick6#129). (forwarded
2021-01-16 7.0.10-58 <quetzlzacatenango@image...> * Release ImageMagick version 7.0.10-58 GIT revision 18277:8876652f5:20210116 2021-01-11 7.0.10-58 <quetzlzacatenango@image...> * identify the convex hull and minimum bounding box attributes of an image with the -define identify:convex-hull=true define. * set the quality to 100 to produce lossless HEIC images (reference ImageMagick/ImageMagick#3116). * properly identify SVG images (reference ImageMagick/ImageMagick#3117). * duplicate operator: inverse range parameter working again (reference ImageMagick/ImageMagick#3113). * Fix rounding error for CSS colors on i686 (reference https://tracker.debian.org/pkg/imagemagick).
Prerequisites
[ x ] I have written a descriptive issue title
[ x ] I have verified that I am using the latest version of ImageMagick
[ x ] I have searched open and closed issues to ensure it has not already been reported
Description
According to the legacy docs (https://legacy.imagemagick.org/Usage/anim_mods/#patrol), a patrol-cycle style animation is created by reversing the range parameter of the duplicate operator. However, this does not work in ImageMagick 7.
Steps to Reproduce
For a patrol-cycle style animation, we want to append all the frames in reverse except for the first and the last frame.
While appending the frames in forward order works as expected:
magick xc:#000 xc:#001 xc:#002 xc:#003 xc:#004 -duplicate 1,1--2 info:
Frames 0, 1, 2, 3 and 4 are followed by 1, 2 and 3:
Reversing the range parameter...
magick xc:#000 xc:#001 xc:#002 xc:#003 xc:#004 -duplicate 1,-2-1 info:
... we would expect to see frames 0, 1, 2, 3 and 4 followed by 3, 2 and 1, but instead we get no change:
There is a discussion here. Thanks @GeeMack for your help!
Proposed solution
Depending on the intended behavior of "-duplicate" and "-clone" either fix the inverse range method or update the docs with the workaround suggested by @GeeMack.
System Configuration
The text was updated successfully, but these errors were encountered: