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

Can we remove thumbnail creation for gifs, thus allowing mp4 -> anima… #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wnm
Copy link

@wnm wnm commented Oct 21, 2016

…ted gif transformation?

Hey there,

I was trying to use ruby-av and paperclip-av-transcoder to transform user uploaded mp4 files to gifs, and vice versa. The gif -> mp4 transformation works beautifully, and I think the only thing stopping me from being able to transform videos into animated gifs, is the default options that get added for gif files, to create a static thumbnail: "-f image2 -vframes 1".

I removed gifs from the output_format method in my project and was able to transform mp4 to gifs with the following options:

    styles: {
      gif: { 
        format: 'gif',
        :processors => [:transcoder],
        time: 0,
        convert_options: {
          output: {
            vf: "fps=10,scale=320:-1"
          }
        }
      }     
    }

Can we remove thumbnail creation for gifs?

…ted gif transformation?

Hey there,

I was trying to use ruby-av and paperclip-av-transcoder to transform user uploaded mp4 files to gifs, and vice versa. The gif -> mp4 transformation works beautifully, and I think the only thing stopping me from being able to transform videos into animated gifs, is the default options that get added for gif files, to create a static thumbnail: "-f image2 -vframes 1".

I removed gifs from the output_format method in my project and was able to transform mp4 to gifs with the following options:

```
    styles: {
      gif: { 
        format: 'gif',
        :processors => [:transcoder],
        time: 0,
        convert_options: {
          output: {
            vf: "fps=10,scale=320:-1"
          }
        }
      }     
    }
```

Can we remove thumbnail creation for gifs?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant