Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there,
I have an image (978x275) that is smaller than the desired size (1600x600) and I want it to be enlarged and cropped around the center.
If I try
w=1600,h=600,zc=C,aoe=1
the output remains at 978x275.If I try
w=1600,h=600,zc=C
the output remains at 978x275.If I try
w=1600,h=600,aoe=1
the output enlarges to 1600x450, which is not enough as it should be 2134x600.With
convert input.jpg -resize '1600x600^' -gravity Center -crop 1600x600+0+0 +repage output.jpg
it works. Note the Circumflex (^) behind the resize setting and the quotation marks.If I try now
w=1600,h=600,zc=C,aoe=1
the output enlarges and zoom-crops to the center and is exactly 1600x600.I don't know if that is the right place for this bugfix, but it works as expected. :-)