Merge pull request #170 from pierluigizagaria/new-command-arg-fix

Changed resize args.
This commit is contained in:
Vlammar 2021-04-30 01:34:03 +02:00 committed by GitHub
commit 483a0a29f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,8 +62,12 @@ public class NewCommand extends IoMCommand {
switch (args[1]) {
case "resize":
return ImageUtils.ScalingType.CONTAINED;
case "stretch":
case "stretched":
case "resize-stretched":
return ImageUtils.ScalingType.STRETCHED;
case "cover":
case "covered":
case "resize-covered":
return ImageUtils.ScalingType.COVERED;
default: