You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Pixel density is only used in vector images, which Gatsby’s implementation of Sharp doesn’t support. This option is currently a no-op and will be removed in the next major version of Gatsby.
|`maxWidth`|`650`| The `maxWidth` in pixels of the `div` where the markdown will be displayed. This value is used when deciding what the width of the various responsive thumbnails should be. |
50
-
|`linkImagesToOriginal`|`true`| Add a link to each image to the original image. Sometimes people want to see a full-sized version of an image e.g. to see extra detail on a part of the image and this is a convenient and common pattern for enabling this. Set this option to false to disable this behavior. |
51
-
|`showCaptions`|`false`| Add a caption to each image with the contents of the title attribute, when this is not empty. Set this option to true to enable this behavior. |
52
-
|`sizeByPixelDensity`|`false`| Analyze images' pixel density to make decisions about target image size. This is what GitHub is doing when embedding images in tickets. This is a useful setting for documentation pages with a lot of screenshots. It can have unintended side effects on high-pixel density artworks.<br /><br />Example: A screenshot made on a retina screen with a resolution of 144 (e.g. Macbook) and a width of 100px, will be rendered at 50px. |
53
-
|`wrapperStyle`|| Add custom styles to the div wrapping the responsive images. Use regular CSS syntax, e.g. `margin-bottom:10px; background: red;`|
54
-
|`backgroundColor`|`white`| Set the background color of the image to match the background of your design |
55
-
|`withWebp`|`false`| Additionally generate WebP versions alongside your chosen file format. They are added as a srcset with the appropriate mimetype and will be loaded in browsers that support the format. |
56
-
|`loading`|`lazy`| Set the browser's native lazy loading attribute. One of `lazy`, `eager` or `auto`. |
|`maxWidth`|`650`| The `maxWidth` in pixels of the `div` where the markdown will be displayed. This value is used when deciding what the width of the various responsive thumbnails should be. |
50
+
|`linkImagesToOriginal`|`true`| Add a link to each image to the original image. Sometimes people want to see a full-sized version of an image e.g. to see extra detail on a part of the image and this is a convenient and common pattern for enabling this. Set this option to false to disable this behavior. |
51
+
|`showCaptions`|`false`| Add a caption to each image with the contents of the title attribute, when this is not empty. Set this option to true to enable this behavior. |
52
+
|`wrapperStyle`|| Add custom styles to the div wrapping the responsive images. Use regular CSS syntax, e.g. `margin-bottom:10px; background: red;`|
53
+
|`backgroundColor`|`white`| Set the background color of the image to match the background of your design |
54
+
|`withWebp`|`false`| Additionally generate WebP versions alongside your chosen file format. They are added as a srcset with the appropriate mimetype and will be loaded in browsers that support the format. |
55
+
|`loading`|`lazy`| Set the browser's native lazy loading attribute. One of `lazy`, `eager` or `auto`. |
Copy file name to clipboardExpand all lines: packages/gatsby-remark-images/README.md
-1
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,6 @@ a reserved keyword `GATSBY_EMPTY_ALT` can be used.
65
65
|`linkImagesToOriginal`|`true`| Add a link to each image to the original image. Sometimes people want to see a full-sized version of an image e.g. to see extra detail on a part of the image and this is a convenient and common pattern for enabling this. Set this option to `false` to disable this behavior. |
66
66
|`showCaptions`|`false`| Add a caption to each image with the contents of the title attribute, when this is not empty. If the title attribute is empty but the alt attribute is not, it will be used instead. Set this option to true to enable this behavior. You can also pass an array instead to specify which value should be used for the caption — for example, passing `['alt', 'title']` would use the alt attribute first, and then the title. When this is set to `true` it is the same as passing `['title', 'alt']`. If you just want to use the title (and omit captions for images that have alt attributes but no title), pass `['title']`. |
67
67
|`markdownCaptions`|`false`| Parse the caption as markdown instead of raw text. Ignored if `showCaptions` is `false`. |
68
-
|`sizeByPixelDensity`|`false`|[deprecated] Pixel density is only used in vector images, which Gatsby’s implementation of Sharp doesn’t support. This option is currently a no-op and will be removed in the next major version of Gatsby. |
69
68
|`wrapperStyle`|| Add custom styles to the div wrapping the responsive images. Use the syntax for the style attribute e.g. `margin-bottom:10px; background: red;` or a function returning a style string which receives the information about the image you can use to dynamically set styles based on the `aspectRatio` for example. |
70
69
|`backgroundColor`|`white`| Set the background color of the image to match the background image of your design.<br /><br />**Note:**<br />- set this option to `transparent` for a transparent image background.<br /> - set this option to `none` to completely remove the image background. |
71
70
|`quality`|`50`| The quality level of the generated files. |
`Parse the caption as markdown instead of raw text. Ignored if showCaptions is false.`
31
31
),
32
-
sizeByPixelDensity: Joi.boolean()
33
-
.default(false)
34
-
.description(
35
-
`[deprecated] Pixel density is only used in vector images, which Gatsby’s implementation of Sharp doesn’t support. This option is currently a no-op and will be removed in the next major version of Gatsby.`
0 commit comments