Skip to content

Thumbnail bad quality #52

Description

@eugen0329

Hi! I use your gem with the following settings:

  has_attached_file :video, styles:  {
    medium: { geometry: "640x480",  format: 'mp4' },
    thumbnail:  {  geometry: "220x130#",  format: 'jpg',  time: 3 }
  },
  processors: [:transcoder]

Somehow video without any defects looks a bit stretched horizontally on a thumbnail.

Do you have any ideas what could it be?

From Gemfile.lock:

    paperclip-av-transcoder (0.6.4)
      av (~> 0.9.0)
      paperclip (>= 2.5.2)

Activity

  1. pashazel commented on Jan 30, 2017

    @pashazel

    @eugen0329 Hello! Use convert_options

    has_attached_file :video, styles:  {
        medium: { geometry: "640x480",  format: 'mp4' },
        thumbnail:  {  
          geometry: "220x130#",  
          format: 'jpg',  
          time: 3,  
          convert_options: {
            output: {
              'q:v' => 1 # range from 1 to 31, where lower means better 
            }
          }
        }
      },  processors: [:transcoder]
    
  2. eugen0329 commented on Feb 9, 2017

    @eugen0329
    Author

    I haven't tried this yet due to a bunch of another activities. But it looks like a solution. I'll let you know whether it helped or not. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions