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

Image cropping #78

Merged
merged 2 commits into from Dec 19, 2018
Merged

Image cropping #78

merged 2 commits into from Dec 19, 2018

Conversation

hjvedvik
Copy link
Member

This PR makes it possible to crop images by width and height.

  • fit default: 'cover'
  • position default: 'center'
  • background default: ''
<g-image src="..." width="300" height="300" fit="contain" background="teal" />

@hjvedvik hjvedvik merged commit 001aa0b into master Dec 19, 2018
@hjvedvik hjvedvik deleted the feat/image-cropping branch February 14, 2019 16:59
tkhquang added a commit to tkhquang/gridsome.org that referenced this pull request Mar 21, 2020
Add missing "position" property from gridsome/gridsome#78
tkhquang added a commit to tkhquang/gridsome.org that referenced this pull request Mar 21, 2020
Add missing "position" property from gridsome/gridsome#78
tomtev pushed a commit to gridsome/gridsome.org that referenced this pull request Mar 24, 2020
* Update images.md

Add missing "position" property from gridsome/gridsome#78

* Fix the alignment of for fit option line
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.

None yet

1 participant