Comments (11)
You need to install the v1.x version (release candidate 10) to get forced format to work:
npm install [email protected]
from node-s3-uploader.
Need change how to use function upload?
Because when i change the version and execute a file with code, return erro.
{ [InvalidArgument: null]
message: null,
code: 'InvalidArgument',
time: Tue Jul 21 2015 13:55:02 GMT-0300 (BRT),
statusCode: 400,
retryable: false,
retryDelay: 30 }
from node-s3-uploader.
You can look over the list of breaking changes here. There are some changes to the configuration when you instantiate the Uploader
class.
from node-s3-uploader.
@Starefossen i follow the changes, but return other error.
"errTimeoutError: Missing credentials in config"
Code:
var client = new Upload(S3_BUCKET, {
awsBucketRegion: 'us-east-1',
awsBucketPath: 'track_cover/',
awsBucketAcl: 'public-read',
awsAccessKeyId: S3_KEY,
awsSecretAccessKey: S3_SECRET,
awsMaxRetries: 2,
awsHttpTimeout: 3000,
tmpDir: "",
resizeQuality: 100,
cleanup: {
versions: false,
original: false
},
original: {
awsImageAcl: 'public'
},
resize: {
quality: 100
},
versions: [{
maxHeight: 270,
maxWidth: 310,
suffix: '-small',
format: 'png'
}]
});
from node-s3-uploader.
Can you post the following and I will try to debug this for you:
- What operating system and version are you using
- What version of node/iojs are you using?
- What version of ImageMagick are you using?
from node-s3-uploader.
Elementary OS Freya
node: v0.10.37
ImageMagick 6.7.7-10
I'll update the version of imagemagick!
from node-s3-uploader.
Yeah, you should upgrade your version of ImageMagick.
I also noticed that you have not updated your AWS configuration to match the new format:
var client = new Upload(S3_BUCKET, {
was: {
region: 'us-east-1',
path: 'track_cover/',
acl: 'public-read',
accessKeyId: S3_KEY,
secretAccessKey: S3_SECRET,
awsMaxRetries: 2,
httpOptions: {
timeout: 3000
}
}
...
});
from node-s3-uploader.
I had the same problem with image types, '.png' especially. I upgraded to version 1.0.0-rc.10 per your comment above and it solved the problem!
I wanted to especially thank you for this node-s3-uploader! I had been using s3FS to upload (worked fine) but after a lot of time researching, I could not figure out how to resize the images during upload. Node-s3-upload handles that so well and so easily!
Thank you!
Ken
from node-s3-uploader.
Thanks for the kind words @klindberg! I will push forward to get v1.0.0 released as the latest stabel version; we have been using it in production for a while now with no known bugs as of the latest RC version.
from node-s3-uploader.
I've been using the different release candidates in production as well.
from node-s3-uploader.
I could not change the version of imagemagick, then i'll use the trivial proccess that i'm using.
But when I can change , I will use the s3 - uploader.
Thanks for the your attention!
from node-s3-uploader.
Related Issues (20)
- I don't want to upload the original image. HOT 1
- Unable to parse path with space HOT 2
- How to use with form upload and express 4? HOT 5
- File type .xcf (GIMP file) causing uncatchable error HOT 1
- TimeoutError: Connection timed out after 10000ms HOT 5
- Creating image version without specifying max-width (original size), results in smaller image file size (lesser quality?) than a smaller px image? HOT 2
- The authorization mechanism you have provided is not supported HOT 3
- if crop the image with width and aspect ration, how to define from the center/top/down as the position to crop? Thanks. HOT 1
- Feature request / docs request - Usage with Node.js streams HOT 2
- Add ImageMagick installation instructions
- Original uploaded image does not have an extension when the path is specified HOT 2
- client.upload() getting error
- original version removed still with cleanup false in configuration
- Is there a way to generate progressive jpeg versions?
- upload error: convert failed
- It doesn't return or upload original image
- [Feature Request] - Proxy Support
- Problem with ImageMagick 7.x
- Please help more than once but it is the same result
- TimeoutError: Missing credentials in config HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-s3-uploader.