madhums / madhums/node-imager

Gifs not uploaded properly.

Open
#82 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
267
Forks
60
PR merge metrics
No merged PRs in 30d

Description

I'm trying to upload a gif to S3. Users can upload gifs from a form-like interface. If I write one of these uploaded gifs to disk from Node then it appears fine, without any issues.

Then when I upload the gif to S3, there are strange black frames between each of the normal frames in the gif ([example](http://wildfire-profile-photos.s3.amazonaws.com/default_1419648534572.gif)).

My imager config is

```
module.exports = {
variants: {
items: {
// keepNames: true,
resize: {
default: "250x250"
}
}
},

storage: {
Local: {
path: "/var/www/"
},
S3: {
key: 'key',
secret: 'secret',
bucket: 'wildfire-profile-photos',
storageClass: 'REDUCED_REDUNDANCY',
secure: false,
}
}
};
```

I was wondering if there were any additional settings for gifs, or any other caveats for using gifs.

Thanks very much for your help!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the GIF upload through the Node imager configuration and compare the file written to disk with the version uploaded to S3. Done means the S3-hosted GIF preserves its normal frames without black frames and any relevant GIF-specific caveats are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, node.js
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.