Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
feat(Img): update image options
Browse files Browse the repository at this point in the history
- set showCaptions to only title, as we don't want captions for alt text only images
- set markdownCaptions to allow for rich-text in captions
- disableBgImageOnAlpha to fix blurry edges on transparent pngs
- enable webP when isOnline
  • Loading branch information
CanRau committed Dec 13, 2019
1 parent 8496902 commit e54403d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ const plugins = [
maxWidth: 800,
backgroundColor: `#eae9e9`,
linkImagesToOriginal: false,
showCaptions: true,
showCaptions: [`title`],
markdownCaptions: true,
disableBgImageOnAlpha: true,
withWebp: isOnline,
quality: 75,
wrapperStyle: f => `flex:${round(f.aspectRatio, 2)};`,
ignoreFileExtensions: [], // the quick fix? #6698
Expand Down

0 comments on commit e54403d

Please sign in to comment.