Skip to content

Commit

Permalink
Add width for images to resize. Random width to test.
Browse files Browse the repository at this point in the history
  • Loading branch information
anagh-p committed Jan 5, 2017
1 parent d21f032 commit b2008ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quintype/Seo/Story.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private function getHeroImageUrl()
$cdn = isset($this->config['cdn-image']) ? "https://".$this->config['cdn-image'] : $this->config['cdn-name'];
$imageUrl = trim($cdn, '/').'/'.$this->story['hero-image-s3-key'];

return str_replace(' ', '%20', $imageUrl);
return str_replace(' ', '%20', $imageUrl).'?w=700';
} else {
return '';
}
Expand Down

0 comments on commit b2008ba

Please sign in to comment.