-
Notifications
You must be signed in to change notification settings - Fork 54
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
I am getting Invalid argument for cropping error #78
Comments
@inampaki Could you provide the following info?
|
|
This worked in version 0.9 with cropping object included. One more thing original file is not uploaded while according to documentation is should also be uploaded. |
Any update on this issue? I am also getting it. |
I have this configuration from example;
client : new Upload('trig.maktaabi', { aws: { path: 'uploads/', region: 'us-east-1', acl: 'public-read' }, cleanup: { versions: true, original: true }, original: { awsImageAcl: 'public-read' }, versions: [{ maxHeight: 100, maxWidth: 100, resizeStyle : "fill", aspect: '1:1', format: 'jpg', suffix: '-thumb1' },{ maxHeight: 200, maxWidth: 200, resizeStyle : "fill", aspect: '1:1', format: 'jpg', suffix: '-thumb2' }] });
but on uploading I am getting following Error;
error in uploading to S3
{ [Error: Command failed: convert uploads\5860c7d84873e0d946ecd5578d1e4ede -auto-orient -strip -write mpr:uploads\5860c7d84873e0d946ecd5578d1e4ede +delete mpr:uploads\5860c7d84873e0d946ecd5578d1e4ede -quality 70 -crop "NaNxNaN+NaN+NaN" -resize "100x100" -write uploads\5860c7d84873e0d946ecd5578d1e4ede-thumb1.jpg +delete mpr:uploads\5860c7d84873e0d946ecd5578d1e4ede -quality 70 -crop "NaNxNaN+NaN+NaN" -resize "200x200" uploads\5860c7d84873e0d946ecd5578d1e4ede-thumb2.jpg
convert: invalid argument for option '-crop': NaNxNaN+NaN+NaN @ error/convert.c/ConvertImageCommand/1215.
]
killed: false,
code: 1,
signal: null,
cmd: 'convert uploads\5860c7d84873e0d946ecd5578d1e4ede -auto-orient -strip -write mpr:uploads\5860c7d84873e0d946ecd5578d1e4ede +delete mpr:uploads\5860c7d84873e0d946ecd5578d1e4ede -quality 70 -crop "NaNxNaN+NaN+NaN" -resize "100x100" -write uploads\5860c7d84873e0d946ecd5578d1e4ede-thumb1.jpg +delete mpr:uploads\5860c7d84873e0d946ecd5578d1e4ede -quality 70 -crop "NaNxNaN+NaN+NaN" -resize "200x200" uploads\5860c7d84873e0d946ecd5578d1e4ede-thumb2.jpg' }
The text was updated successfully, but these errors were encountered: