Giter VIP home page Giter VIP logo

Comments (11)

Starefossen avatar Starefossen commented on September 13, 2024

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.

nicholasess avatar nicholasess commented on September 13, 2024

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.

Starefossen avatar Starefossen commented on September 13, 2024

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.

nicholasess avatar nicholasess commented on September 13, 2024

@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.

Starefossen avatar Starefossen commented on September 13, 2024

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.

nicholasess avatar nicholasess commented on September 13, 2024

Elementary OS Freya
node: v0.10.37
ImageMagick 6.7.7-10

I'll update the version of imagemagick!

from node-s3-uploader.

Starefossen avatar Starefossen commented on September 13, 2024

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.

klindberg avatar klindberg commented on September 13, 2024

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.

Starefossen avatar Starefossen commented on September 13, 2024

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.

anthonyringoet avatar anthonyringoet commented on September 13, 2024

I've been using the different release candidates in production as well.

from node-s3-uploader.

nicholasess avatar nicholasess commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.