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

What's the reason behind rounding to multiples of two #910

Closed
RyanAfrish7 opened this issue Jun 12, 2019 · 2 comments
Closed

What's the reason behind rounding to multiples of two #910

RyanAfrish7 opened this issue Jun 12, 2019 · 2 comments
Labels

Comments

@RyanAfrish7
Copy link

I have been facing size issues with the screenshots generated. Most times I find it offset by 1 pixel. Just now going thru the code pointed me out this. Please add this to the documentation if this is unavoidable.

// Round target size to multiples of 2

@njoyard
Copy link
Member

njoyard commented Jun 13, 2019

Because many codecs require multiples of two (eg. x264)

@kj800x
Copy link

kj800x commented Jul 30, 2019

Is this documented anywhere?

Related: RyanAfrish7/thumbsupply#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants