Skip to content
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

Open
inampaki opened this issue Jun 22, 2016 · 4 comments
Open

I am getting Invalid argument for cropping error #78

inampaki opened this issue Jun 22, 2016 · 4 comments

Comments

@inampaki
Copy link

inampaki commented Jun 22, 2016

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' }

@anthonyringoet
Copy link
Contributor

@inampaki Could you provide the following info?

  • Operating System
  • Node.js version
  • node-s3-uploader version

@inampaki
Copy link
Author

  • OS : Windows 10
  • Node Version : v5.10.1
  • node-s3-uploader : 1.1

@inampaki
Copy link
Author

inampaki commented Jun 25, 2016

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.
client : new Upload("trig.maktaabi1", { 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', crop: { x: 0, y: 0, width: 100, height: 100 } },{ maxHeight: 200, maxWidth: 200, resizeStyle : "fill", aspect: '1:1', format: 'jpg', suffix: '-thumb2', crop: { x: 0, y: 0, width: 200, height: 200 } }] })

@MaximilianLloyd
Copy link

MaximilianLloyd commented Mar 4, 2017

Any update on this issue? I am also getting it.
Error: Command failed: convert C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1.jpeg -auto-orient -strip -write mpr:C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1.jpeg +delete mpr:C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1.jpeg -quality 80 -resize "1040x1040" -write C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1-large.jpg +delete mpr:C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1.jpeg -quality 70 -crop "NaNxNaN+NaN+NaN" -resize "780" -write C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1-medium.jpeg +delete mpr:C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1.jpeg -quality 70 -crop "NaNxNaN+NaN+NaN" -resize "320" -write C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1-small.jpeg +delete mpr:C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1.jpeg -quality 70 -crop "NaNxNaN+NaN+NaN" -resize "x100" -write C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1-thumb1.png +delete mpr:C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1.jpeg -quality 70 -crop "NaNxNaN+NaN+NaN" -resize "250x250" C:\Users\Max\AppData\Local\Temp\vlJOCjbCFatj8PQN4VokK8M1-thumb2.jpeg convert: invalid argument for option '-crop': NaNxNaN+NaN+NaN @ error/convert.c/ConvertImageCommand/1206.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants