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

use 16x9 image for video page meta itemprop image #16471

Merged
merged 3 commits into from Apr 20, 2017
Merged

Conversation

gidsg
Copy link
Contributor

@gidsg gidsg commented Apr 18, 2017

What does this change?

Currently we are using a 5x3 image as the meta itemprop image on video pages. I noticed in some video container views within Google SERPs the images are being either 'black boxed' or cropped.

cropped

This PR changes video pages to use a 16x9 meta image, so they should now fit correctly into these components.

What is the value of this and can you measure success?

Experiment to see if appearance of video pages is improved in SERPs.

Does this affect other platforms - Amp, Apps, etc?

No

Screenshots

N/A

Tested in CODE?

No

@@ -79,7 +79,11 @@
<meta itemprop="width" content="@mv.videos.width" />
}
<meta itemprop="requiresSubscription" content="false" />
<meta itemprop="image" content="@Html(video.content.signedArticleImage)" />
@defining(video.mediaAtom.flatMap(_.posterImage) orElse video.elements.thumbnail.map(_.images)) {sixteenByNineImage =>
@sixteenByNineImage.map {i =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have all this logic in the content class rather than the template?

Copy link
Member

@akash1810 akash1810 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@prout-bot
Copy link
Collaborator

Seen on PROD (merged by @gidsg 14 minutes and 53 seconds ago) Please check your changes!

@gu-stav gu-stav deleted the video-meta-169 branch June 28, 2017 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants