Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gatsby-plugin-sharp

gatsbyjs637.8kMIT5.15.0TypeScript support: included

Wrapper of the Sharp image manipulation library for Gatsby plugins

gatsby, gatsby-plugin, image, sharp

readme

gatsby-plugin-sharp

Exposes several image processing functions built on the Sharp image processing library. This is a low-level helper plugin generally used by other Gatsby plugins. You generally shouldn't be using this directly but might find it helpful if doing very custom image processing.

It aims to provide excellent out-of-the box settings for processing common web image formats.

For JPEGs it generates progressive images with a default quality level of 50.

For PNGs it uses pngquant to compress images. By default it uses a quality setting of [50-75]. The pngCompressionSpeed value is a speed/quality trade-off from 1 (brute-force) to 10 (fastest). Speed 10 has 5% lower quality, but is 8 times faster than the default (4). In most cases you should stick with the default, but if you have very large numbers of PNGs then it can significantly reduce build times.

Install

npm install gatsby-plugin-sharp

How to use

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-sharp`,
      options: {
        // Defaults used for gatsbyImageData and StaticImage
        defaults: {},
        // Relates to "options.failOn" in https://sharp.pixelplumbing.com/api-constructor#parameters
        failOn: `warning`,
      },
    },
  ]
}

Options

  • defaults: Default values used for gatsbyImageData and StaticImage from gatsby-plugin-image. Available options are: formats,placeholder,quality,breakpoints,backgroundColor,tracedSVGOptions,blurredOptions,jpgOptions,pngOptions,webpOptions,avifOptions. For details of these, see the reference guide.
  • failOn: default = warning. By default, builds will fail if sharp finds an image with corrupted pixel values. When setting failOn to none the image will return undefined instead. You can customize this option, see options.failOn. Images with corrupt image headers/metadata will always fail, regardless of this setting.

Methods

resize

Parameters

  • width (int, default: 400)
  • height (int)
  • quality (int, default: 50)
  • jpegQuality (int)
  • pngQuality (int)
  • webpQuality (int)
  • jpegProgressive (bool, default: true)
  • pngCompressionLevel (int, default: 9)
  • base64(bool, default: false)

Returns

  • src (string)
  • width (int)
  • height (int)
  • aspectRatio (float)

fixed

Automatically create sizes for different resolutions — we do 1x, 1.5x, and 2x.

Parameters

  • width (int, default: 400)
  • height (int)
  • quality (int, default: 50)
  • jpegQuality (int)
  • pngQuality (int)
  • webpQuality (int)

Returns

  • base64 (string)
  • aspectRatio (float)
  • width (float)
  • height (float)
  • src (string)
  • srcSet (string)

fluid

Create fluid sizes (in width) for the image. If the max width of the container for the rendered markdown file is 800px, the sizes would then be: 200px, 400px, 800px, 1200px, 1600px – enough to provide close to the optimal image size for every device size / screen resolution.

If you want more control over which sizes are output you can use the srcSetBreakpoints parameter. For example, if you want images that are 200, 340, 520, and 890 wide you can add srcSetBreakpoints: [ 200, 340, 520, 890 ] as a parameter. You will also get maxWidth as a breakpoint (which is 800 by default), so you will actually get [ 200, 340, 520, 800, 890 ] as breakpoints.

On top of that, fluid returns everything else (namely aspectRatio and a base64 image to use as a placeholder) you need to implement the "blur up" technique popularized by Medium and Facebook (and also available as a Gatsby plugin for Markdown content as gatsby-remark-images).

When both a maxWidth and maxHeight are provided, sharp will resize the image using COVER as a fit strategy by default. You can choose between COVER, CONTAIN, FILL, INSIDE, and OUTSIDE as a fit strategy. See the fit parameter below for more details.

Parameters

  • maxWidth (int, default: 800)
  • maxHeight (int)
  • quality (int, default: 50)
  • jpegQuality (int)
  • pngQuality (int)
  • webpQuality (int)
  • srcSetBreakpoints (array of int, default: [])
  • background (string, default: 'rgba(0,0,0,1)')

Returns

  • base64 (string)
  • aspectRatio (float)
  • src (string)
  • srcSet (string)
  • srcSetType (string)
  • sizes (string)
  • originalImg (string)

Shared Options

In addition to their individual parameters, all methods above share the following:

  • grayscale (bool, default: false)
  • duotone (bool|obj, default: false)
  • toFormat (string, default: '')
  • toFormatBase64 (string, default: '')
  • base64Width (int, default: 20)
  • cropFocus (string, default: 'ATTENTION')
  • fit (string, default: 'COVER')
  • pngCompressionSpeed (int, default: 4)
  • rotate (int, default: 0)

toFormat

Convert the source image to one of the following available options: NO_CHANGE, JPG, PNG, WEBP.

toFormatBase64

base64 image uses the image format from the source, or the value of toFormat. This setting allows a different image format instead, available options are: JPG, PNG, WEBP.

WEBP allows for a smaller data size, allowing you to reduce your HTML size when transferring over the network, or to use a larger base64 placeholder width default for improved image placeholder quality.

Not all browsers support WEBP. It would be wasteful to include a fallback image format in this case. Consider also adding a backgroundColor placeholder as a fallback instead.

The plugin config option forceBase64Format performs the equivalent functionality by default to all your base64 placeholders. toFormatBase64 has a higher priority for base64 images that need to selectively use a different format.

base64Width

The width in pixels for your base64 placeholder to use. The height will also be adjusted based on the aspect ratio of the image. Use this to increase the image quality by allowing more pixels to be used at the expense of increasing the file size of the data to be transferred.

The default for Gatsby is 20px. This keeps the data size low enough to embed into the HTML document for immediate display on DOM loaded and avoids an additional network request.

Facebook and Medium are both known to use 42px width for their image placeholders. However Medium presently uses a solid background color placeholder to load the page as fast as possible, followed by an image placeholder requested over the network instead of embedding it with base64.

The plugin config has an equivalent option, allowing you to change the default for all base64 placeholders. This parameter option has a higher priority over the plugin config option.

cropFocus

Change the cropping focus. Available options: CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, NORTHWEST, ENTROPY, ATTENTION. See Sharp's resize.

fit

Select the fit strategy for sharp to use when resizing images. Available options are: COVER, CONTAIN, FILL, INSIDE, OUTSIDE. See Sharp's resize.

Note: The fit strategies CONTAIN and FILL will not work when cropFocus is set to ENTROPY or ATTENTION.

The following image shows the effects of each fit option. You can see that the INSIDE option results in one dimension being smaller than requested, while the OUTSIDE option results in one dimension being larger than requested. Sharp transform fit options

pngCompressionSpeed

Change the speed/quality tradeoff for PNG compression from 1 (brute-force) to 10 (fastest). See pngquant's options.

rotate

Rotate the image (after cropping). See Sharp's rotate.

grayscale

Uses Sharp's grayscale to convert the source image to 8-bit grayscale, 256 shades of gray, e.g.

allImageSharp {
  edges {
    node {
      ... on ImageSharp {
        resize(width: 150, height: 150, grayscale: true) {
          src
        }
      }
    }
  }
}

duotone

Applys a "duotone" effect (see I, II, III) to the source image if given two hex colors shadow and highlight defining start and end color of the duotone gradient, e.g.

fixed(
  width: 800,
  duotone: {
    highlight: "#f00e2e",
    shadow: "#192550"
  }
) {
  src
  srcSet
  base64
}

the source image colors will be converted to match a gradient color chosen based on each pixel's relative luminance.\ Logic is borrowed from react-duotone.

You can pass a third optional parameter, opacity:

fluid(
  width: 800,
  duotone: {
    highlight: "#f00e2e",
    shadow: "#192550",
    opacity: 50
  }
) {
  src
  srcSet
  base64
}

If set, a semi-transparent version of duotone'd image will be composited over the original image, allowing the original image and its colors to partially "shine through". Heads up: If the original image contains an alpha channel it will be flattened before creating the composite.

This works by adding an alpha channel to the duotone'd image - then we let Sharp do its magic via overlayWith; quoting the Sharp documentation:

If the overlay image contains an alpha channel then composition with premultiplication will occur.

Setting sharp's level of sensitivity to invalid images

By default, the build will fail when sharp encounters an error while processing an image. You can change parts of this behavior by changing the failOn setting to none. In that case sharp will then ignore any errors relating to the pixel values/file structure of your file. However, if your image has corrupt image headers/metadata the build will still fail. It is important to note that any images that would have otherwise failed will not be accessible via childImageSharp until the underlying issue with the image is addressed.

EXIF and ICC metadata

By default, gatsby-plugin-sharp strips all EXIF, ICC and other metadata present in your source file. This is the recommended default as it leads to smaller file sizes.

However, in situations where you wish to preserve EXIF metadata or ICC profiles (example: you are building a photography portfolio and wish to conserve the color profile or the copyright information of the photos you've exported from Adobe Lightroom or Phase One's Capture One), you can set the stripMetadata plugin option to false in gatsby-config.js.

It is important to note that if stripMetadata is set to false, all metadata information will be preserved from the source image, including but not limited to the latitude/longitude information of where the picture was taken (if present). If you wish to strip this information from the source file, you can either leave stripMetadata to its default of true, or manually pre-process your images with a tool such as ExifTool.

Troubleshooting

Incompatible library version: sharp.node requires version X or later, but Z provides version Y

This means that there are multiple incompatible versions of the sharp package installed in node_modules. The complete error typically looks like this:

Something went wrong installing the "sharp" module

dlopen(/Users/misiek/dev/gatsby-starter-blog/node_modules/sharp/build/Release/sharp.node, 1): Library not loaded: @rpath/libglib-2.0.dylib
  Referenced from: /Users/misiek/dev/gatsby-starter-blog/node_modules/sharp/build/Release/sharp.node
  Reason: Incompatible library version: sharp.node requires version 6001.0.0 or later, but libglib-2.0.dylib provides version 5801.0.0

To fix this, you'll need to update all Gatsby plugins in the current project that depend on the sharp package. Here's a list of official plugins that you might need to update in case your projects uses them:

  • gatsby-plugin-sharp
  • gatsby-plugin-manifest
  • gatsby-remark-images-contentful
  • gatsby-source-contentful
  • gatsby-transformer-sharp
  • gatsby-transformer-sqip

To update these packages, run:

npm install gatsby-plugin-sharp gatsby-plugin-manifest gatsby-remark-images-contentful gatsby-source-contentful gatsby-transformer-sharp gatsby-transformer-sqip

If updating these doesn't fix the issue, your project probably uses other plugins from the community that depend on a different version of sharp. Try running npm list sharp or yarn why sharp to see all packages in the current project that use sharp and try updating them as well.

changelog

Changelog: gatsby-plugin-sharp

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

5.14.0 (2024-11-06)

🧾 Release notes

Bug Fixes

  • update dependency fs-extra to ^11.2.0 #38727 (cb33fe5)
  • update dependency async to ^3.2.5 for gatsby-plugin-sharp #38721 (a30811a)

5.13.1 (2024-01-23)

Note: Version bump only for package gatsby-plugin-sharp

5.13.0 (2023-12-18)

🧾 Release notes

Chores

5.12.3 (2023-10-26)

Note: Version bump only for package gatsby-plugin-sharp

5.12.2 (2023-10-20)

Note: Version bump only for package gatsby-plugin-sharp

5.12.1 (2023-10-09)

Chores

5.12.0 (2023-08-24)

🧾 Release notes

Bug Fixes

5.11.0 (2023-06-15)

🧾 Release notes

Chores

5.10.0 (2023-05-16)

🧾 Release notes

Bug Fixes

5.9.0 (2023-04-18)

🧾 Release notes

Bug Fixes

  • update dependency fs-extra to ^11.1.1 #37827 (3e9a590)
  • don't serve static assets that are not result of currently triggered deferred job #37796 (6539860)

5.8.1 (2023-03-29)

Bug Fixes

  • don't serve static assets that are not result of currently triggered deferred job #37796 #37799 (5f44208)

5.8.0 (2023-03-21)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

5.7.0 (2023-02-21)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

5.6.0 (2023-02-07)

🧾 Release notes

Bug Fixes

Chores

5.5.0 (2023-01-24)

🧾 Release notes

Chores

5.4.0 (2023-01-10)

🧾 Release notes

Bug Fixes

Chores

5.3.2 (2022-12-14)

Note: Version bump only for package gatsby-plugin-sharp

5.3.1 (2022-12-14)

Note: Version bump only for package gatsby-plugin-sharp

5.3.0 (2022-12-13)

🧾 Release notes

Bug Fixes

Chores

5.2.0 (2022-11-25)

🧾 Release notes

Chores

Other Changes

5.1.0 (2022-11-22)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

5.0.0 (2022-11-08)

🧾 Release notes

Chores

4.24.0 (2022-09-27)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

4.23.1 (2022-09-22)

Note: Version bump only for package gatsby-plugin-sharp

4.23.0 (2022-09-13)

🧾 Release notes

Chores

4.22.0 (2022-08-30)

🧾 Release notes

Chores

4.21.0 (2022-08-16)

🧾 Release notes

Chores

4.20.0 (2022-08-02)

🧾 Release notes

Bug Fixes

4.19.0 (2022-07-19)

🧾 Release notes

Bug Fixes

  • update dependency async to ^3.2.4 for gatsby-plugin-sharp #36032 (20c790a)

4.18.1 (2022-07-12)

Note: Version bump only for package gatsby-plugin-sharp

4.18.0 (2022-07-05)

🧾 Release notes

Bug Fixes

  • update dependency got to ^11.8.5 for gatsby-plugin-sharp #35800 (c2d3336)

4.17.0 (2022-06-21)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

4.16.1 (2022-06-08)

Note: Version bump only for package gatsby-plugin-sharp

4.16.0 (2022-06-07)

🧾 Release notes

Features

Performance Improvements

  • downsize image before extracting dominant color #35814 (5e6c808)

4.15.1 (2022-06-01)

Note: Version bump only for package gatsby-plugin-sharp

4.15.0 (2022-05-24)

🧾 Release notes

Chores

4.14.1 (2022-05-12)

Note: Version bump only for package gatsby-plugin-sharp

4.14.0 (2022-05-10)

🧾 Release notes

Bug Fixes

4.13.0 (2022-04-26)

🧾 Release notes

Features

4.12.1 (2022-04-13)

Note: Version bump only for package gatsby-plugin-sharp

4.12.0 (2022-04-12)

🧾 Release notes

Bug Fixes

Chores

4.11.1 (2022-03-31)

Bug Fixes

4.11.0 (2022-03-29)

🧾 Release notes

Refactoring

4.10.2 (2022-03-23)

Note: Version bump only for package gatsby-plugin-sharp

4.10.1 (2022-03-18)

Note: Version bump only for package gatsby-plugin-sharp

4.10.0 (2022-03-16)

🧾 Release notes

Bug Fixes

4.9.1 (2022-03-09)

Note: Version bump only for package gatsby-plugin-sharp

4.9.0 (2022-03-01)

🧾 Release notes

Chores

4.8.2 (2022-03-01)

Note: Version bump only for package gatsby-plugin-sharp

4.8.1 (2022-02-25)

Note: Version bump only for package gatsby-plugin-sharp

4.8.0 (2022-02-22)

🧾 Release notes

Bug Fixes

4.7.0 (2022-02-08)

🧾 Release notes

Bug Fixes

  • update minor and patch dependencies for gatsby-plugin-sharp #34656 (c70ab01)

4.6.0 (2022-01-25)

🧾 Release notes

Bug Fixes

4.5.2 (2022-01-17)

Note: Version bump only for package gatsby-plugin-sharp

4.5.1 (2022-01-12)

Note: Version bump only for package gatsby-plugin-sharp

4.5.0 (2022-01-11)

🧾 Release notes

Chores

4.4.0 (2021-12-14)

🧾 Release notes

Bug Fixes

  • update dependency got to ^11.8.3 for gatsby-plugin-sharp #34130 (80ef329)

Chores

4.3.0 (2021-12-01)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

4.2.0 (2021-11-16)

🧾 Release notes

Bug Fixes

  • update minor and patch dependencies for gatsby-plugin-sharp #33770 (e9f0f32)
  • update dependency sharp to ^0.29.2 #33766 (0dfbc48)

4.1.4 (2021-11-15)

Note: Version bump only for package gatsby-plugin-sharp

4.1.3 (2021-11-11)

Note: Version bump only for package gatsby-plugin-sharp

4.1.2 (2021-11-10)

Note: Version bump only for package gatsby-plugin-sharp

4.1.1 (2021-11-09)

Note: Version bump only for package gatsby-plugin-sharp

4.1.0 (2021-11-02)

🧾 Release notes

Bug Fixes

  • pass failOnError to sharp in getImageMetadata #33547 (82cd584)
  • pass input buffer instead of readStream when processing image jobs #33685 (b800559)

4.0.1 (2021-10-27)

Bug Fixes

4.0.0 (2021-10-21)

🧾 Release notes

Bug Fixes

Chores

3.14.3 (2021-11-02)

Note: Version bump only for package gatsby-plugin-sharp

3.14.2 (2021-10-28)

Bug Fixes

3.14.1 (2021-10-06)

Note: Version bump only for package gatsby-plugin-sharp

3.14.0 (2021-09-18)

🧾 Release notes

Features

Bug Fixes

  • Add TS type/v4 patches for unstable_onPluginInit #33062 (8901eb2)
  • update dependency async to ^3.2.1 for gatsby-plugin-sharp #32983 (6857e26)

Chores

Other Changes

  • Revert "chore(release): Publish next" (a0c4d44)

3.13.0 (2021-09-01)

🧾 Release notes

Features

Chores

3.12.0 (2021-08-18)

🧾 Release notes

Bug Fixes

  • update minor and patch dependencies for gatsby-plugin-sharp #32633 (c6b75f7)

Chores

3.11.0 (2021-08-04)

🧾 Release notes

Bug Fixes

3.10.2 (2021-07-21)

Bug Fixes

3.10.1 (2021-07-21)

Note: Version bump only for package gatsby-plugin-sharp

3.10.0 (2021-07-20)

🧾 Release notes

Chores

3.9.0 (2021-07-07)

🧾 Release notes

Features

  • add unstable_onPluginInit that would execute once in all processes #31901 (2bf8c0d)

3.8.0 (2021-06-23)

🧾 Release notes

Chores

3.7.1 (2021-06-10)

Chores

3.7.0 (2021-06-09)

🧾 Release notes

Chores

3.6.0 (2021-05-25)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

3.5.0 (2021-05-12)

🧾 Release notes

Bug Fixes

3.4.2 (2021-05-08)

Note: Version bump only for package gatsby-plugin-sharp

3.4.1 (2021-05-05)

Note: Version bump only for package gatsby-plugin-sharp

3.4.0 (2021-04-28)

🧾 Release notes

Bug Fixes

3.3.1 (2021-04-20)

Note: Version bump only for package gatsby-plugin-sharp

3.3.0 (2021-04-14)

🧾 Release notes

Chores

3.2.1 (2021-04-07)

Note: Version bump only for package gatsby-plugin-sharp

3.2.0 (2021-03-30)

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

3.1.3 (2021-03-30)

Note: Version bump only for package gatsby-plugin-sharp

3.1.2 (2021-03-23)

Note: Version bump only for package gatsby-plugin-sharp

3.1.1 (2021-03-18)

Note: Version bump only for package gatsby-plugin-sharp

3.1.0 (2021-03-16)

🧾 Release notes

Bug Fixes

Chores

3.0.1 (2021-03-11)

Note: Version bump only for package gatsby-plugin-sharp

3.0.0 (2021-03-02)

🧾 Release notes

Features

Bug Fixes

Chores

Other Changes

2.14.4 (2021-05-04)

Note: Version bump only for package gatsby-plugin-sharp

2.14.3 (2021-02-25)

Other Changes

2.14.2 (2021-02-24)

Bug Fixes

2.14.1 (2021-02-05)

Note: Version bump only for package gatsby-plugin-sharp

2.14.0 (2021-02-02)

🧾 Release notes

Features

Bug Fixes

Chores

  • update minor and patch for gatsby-plugin-sharp #28968 (17bb011)

2.13.4 (2021-01-29)

Note: Version bump only for package gatsby-plugin-sharp

2.13.3 (2021-01-28)

Note: Version bump only for package gatsby-plugin-sharp

2.13.2 (2021-01-26)

Note: Version bump only for package gatsby-plugin-sharp

2.13.1 (2021-01-21)

Note: Version bump only for package gatsby-plugin-sharp

2.13.0 (2021-01-20)

🧾 Release notes

Features

Bug Fixes

Performance Improvements

  • change approach to concurrency for image processing #28575 (930e6b6)

Chores

Other Changes

  • fix(sharp) wrap sharp calls in try/catch to avoid crashing on bad images #28645 (004acf0)

2.12.2 (2021-01-16)

Other Changes

  • fix(sharp) wrap sharp calls in try/catch to avoid crashing on bad images #28645 #29052 (bd5c63c)

2.12.1 (2021-01-13)

Bug Fixes

2.12.0 (2021-01-06)

🧾 Release notes

Features

Bug Fixes

Performance Improvements

2.11.2 (2020-12-23)

Note: Version bump only for package gatsby-plugin-sharp

2.11.1 (2020-12-16)

Bug Fixes

2.11.0 (2020-12-15)

🧾 Release notes

Features

Bug Fixes

Chores

2.10.1 (2020-12-07)

Bug Fixes

2.10.0 (2020-12-02)

🧾 Release notes

Features

  • add experimental opt-in lazy image processing mode for gatsby develop #28288 (cc68a1f)
  • Add image plugin helpers #28110 (6ed397f)

Bug Fixes

Chores

  • update minor and patch for gatsby-plugin-sharp #27132 (980445a)

2.9.1 (2020-11-27)

Bug Fixes

2.9.0 (2020-11-20)

🧾 Release notes

Chores

2.8.0 (2020-11-12)

🧾 Release notes

Features

2.7.0 (2020-11-02)

Features

2.6.44 (2020-11-02)

Features

2.6.43 (2020-10-19)

Performance Improvements

  • gatsby-plugin-image: Optimise image size functions (#27544) (8752477)

2.6.42 (2020-10-12)

Features

  • gatsby-plugin-sharp: added option to allow sharp process to continue with errors (#27345) (1da5926)

2.6.41 (2020-10-12)

Note: Version bump only for package gatsby-plugin-sharp

2.6.40 (2020-10-09)

Note: Version bump only for package gatsby-plugin-sharp

2.6.39 (2020-10-06)

Note: Version bump only for package gatsby-plugin-sharp

2.6.38 (2020-10-01)

Note: Version bump only for package gatsby-plugin-sharp

2.6.37 (2020-09-28)

Note: Version bump only for package gatsby-plugin-sharp

2.6.36 (2020-09-15)

Note: Version bump only for package gatsby-plugin-sharp

2.6.35 (2020-09-10)

Note: Version bump only for package gatsby-plugin-sharp

2.6.34 (2020-09-09)

Note: Version bump only for package gatsby-plugin-sharp

2.6.33 (2020-09-08)

Bug Fixes

  • gatsby-plugin-sharp: Don't swallow sharp errors (#26806) (5549a23)

2.6.32 (2020-09-07)

Note: Version bump only for package gatsby-plugin-sharp

2.6.31 (2020-08-31)

Note: Version bump only for package gatsby-plugin-sharp

2.6.30 (2020-08-28)

Note: Version bump only for package gatsby-plugin-sharp

2.6.29 (2020-08-26)

Note: Version bump only for package gatsby-plugin-sharp

2.6.28 (2020-08-24)

Note: Version bump only for package gatsby-plugin-sharp

2.6.27 (2020-08-11)

Note: Version bump only for package gatsby-plugin-sharp

2.6.26 (2020-08-10)

Note: Version bump only for package gatsby-plugin-sharp

2.6.25 (2020-08-05)

Note: Version bump only for package gatsby-plugin-sharp

2.6.24 (2020-07-30)

Note: Version bump only for package gatsby-plugin-sharp

2.6.23 (2020-07-28)

Bug Fixes

2.6.22 (2020-07-24)

Note: Version bump only for package gatsby-plugin-sharp

2.6.21 (2020-07-21)

Note: Version bump only for package gatsby-plugin-sharp

2.6.20 (2020-07-20)

Bug Fixes

2.6.19 (2020-07-09)

Note: Version bump only for package gatsby-plugin-sharp

2.6.18 (2020-07-06)

Bug Fixes

  • gatsby-transformer-sharp: removed unnecessary conversion to webp (#25325) (a5459bc)

2.6.17 (2020-07-02)

Note: Version bump only for package gatsby-plugin-sharp

2.6.16 (2020-07-01)

Note: Version bump only for package gatsby-plugin-sharp

2.6.15 (2020-07-01)

Note: Version bump only for package gatsby-plugin-sharp

2.6.14 (2020-06-24)

Bug Fixes

  • gatsby-plugin-sharp: use contentdigest for base64 cache (#24892) (1c99d34)

2.6.13 (2020-06-22)

Note: Version bump only for package gatsby-plugin-sharp

2.6.12 (2020-06-19)

Note: Version bump only for package gatsby-plugin-sharp

2.6.11 (2020-06-09)

Note: Version bump only for package gatsby-plugin-sharp

2.6.10 (2020-06-02)

Note: Version bump only for package gatsby-plugin-sharp

2.6.9 (2020-05-22)

Note: Version bump only for package gatsby-plugin-sharp

2.6.8 (2020-05-20)

Note: Version bump only for package gatsby-plugin-sharp

2.6.7 (2020-05-20)

Note: Version bump only for package gatsby-plugin-sharp

2.6.6 (2020-05-19)

Note: Version bump only for package gatsby-plugin-sharp

2.6.5 (2020-05-19)

Bug Fixes

2.6.4 (2020-05-18)

Note: Version bump only for package gatsby-plugin-sharp

2.6.3 (2020-05-13)

Note: Version bump only for package gatsby-plugin-sharp

2.6.2 (2020-05-07)

Bug Fixes

  • gatsby-image: Fix fluid not respecting maxWidth/maxHeight (#17006) (ad7cd6b)

2.6.1 (2020-05-05)

Note: Version bump only for package gatsby-plugin-sharp

2.6.0 (2020-04-27)

Note: Version bump only for package gatsby-plugin-sharp

2.5.7 (2020-04-24)

Note: Version bump only for package gatsby-plugin-sharp

2.5.6 (2020-04-17)

Bug Fixes

  • gatsby-plugin-sharp: error if we can't determine dimensio… (#23156) (e11c970)
  • wrap ignore pattern in quotes (#23176) (7563db6)

2.5.5 (2020-04-16)

Bug Fixes

2.5.4 (2020-04-04)

Bug Fixes

2.5.3 (2020-03-24)

Bug Fixes

2.5.2 (2020-03-23)

Bug Fixes

  • gatsby-plugin-sharp: fix Traced SVG scaling issue in Internet Explorer (#22358) (6d4fa76)

2.5.1 (2020-03-20)

Note: Version bump only for package gatsby-plugin-sharp

2.5.0 (2020-03-20)

Features

2.4.13 (2020-03-16)

Note: Version bump only for package gatsby-plugin-sharp

2.4.12 (2020-03-12)

Note: Version bump only for package gatsby-plugin-sharp

2.4.11 (2020-03-11)

Note: Version bump only for package gatsby-plugin-sharp

2.4.10 (2020-03-10)

Note: Version bump only for package gatsby-plugin-sharp

2.4.9 (2020-03-10)

Features

2.4.8 (2020-03-09)

Note: Version bump only for package gatsby-plugin-sharp

2.4.7 (2020-03-06)

Note: Version bump only for package gatsby-plugin-sharp

2.4.6 (2020-03-06)

Note: Version bump only for package gatsby-plugin-sharp

2.4.5 (2020-02-01)

Bug Fixes

  • gatsby-plugin-sharp: throw error when not added to gatsby-config (#21045) (3487e48)

2.4.4 (2020-01-29)

Note: Version bump only for package gatsby-plugin-sharp

2.4.3 (2020-01-27)

Bug Fixes

  • gatsby-plugin-sharp: add output file cache back for non job api (#20905) (64a5399)

2.4.2 (2020-01-27)

Bug Fixes

  • gatsby-plugin-sharp: honor stripMetadata setting for webp output images (#20860) (b1e328a)

2.4.1 (2020-01-27)

Bug Fixes

  • gatsby-plugin-sharp: convert rotate boolean to int (#20894) (a8135ea)
  • gatsby-plugin-sharp: hot fix for "Generating image thumbnails" progress bar reporting duplicates that don't do actual processing (#20839) (db36d69)

2.4.0 (2020-01-21)

Features

2.3.13 (2020-01-09)

Note: Version bump only for package gatsby-plugin-sharp

2.3.12 (2020-01-09)

Note: Version bump only for package gatsby-plugin-sharp

2.3.11 (2020-01-09)

Note: Version bump only for package gatsby-plugin-sharp

2.3.10 (2019-12-20)

Note: Version bump only for package gatsby-plugin-sharp

2.3.9 (2019-12-17)

Bug Fixes

2.3.8 (2019-12-16)

Note: Version bump only for package gatsby-plugin-sharp

2.3.7 (2019-12-10)

Note: Version bump only for package gatsby-plugin-sharp

2.3.6 (2019-12-10)

Note: Version bump only for package gatsby-plugin-sharp

2.3.5 (2019-12-02)

Bug Fixes

  • gatsby-core-utils: make createContentDigest deterministic (#19832) (cb6d0e2)

2.3.4 (2019-11-26)

Note: Version bump only for package gatsby-plugin-sharp

2.3.3 (2019-11-25)

Bug Fixes

  • gatsby-plugin-sharp: fix progressbar & caching layer (#19717) (7f9d5bb)

2.3.2 (2019-11-18)

Note: Version bump only for package gatsby-plugin-sharp

2.3.1 (2019-11-18)

Note: Version bump only for package gatsby-plugin-sharp

2.3.0 (2019-11-15)

Note: Version bump only for package gatsby-plugin-sharp

2.2.39 (2019-11-15)

Note: Version bump only for package gatsby-plugin-sharp

2.2.38 (2019-11-13)

Note: Version bump only for package gatsby-plugin-sharp

2.2.37 (2019-11-10)

Note: Version bump only for package gatsby-plugin-sharp

2.2.36 (2019-10-29)

Bug Fixes

  • gatsby-plugin-sharp: fix "Cannot set property 'multipassCount' of undefined" error (#19131) (3766dcd)

2.2.35 (2019-10-29)

Bug Fixes

2.2.34 (2019-10-28)

Note: Version bump only for package gatsby-plugin-sharp

2.2.33 (2019-10-28)

Bug Fixes

2.2.32 (2019-10-16)

Note: Version bump only for package gatsby-plugin-sharp

2.2.31 (2019-10-14)

Bug Fixes

  • gatsby-plugin-sharp: Allow brackets in paths (#18289) (f9933b1)

2.2.30 (2019-10-14)

Note: Version bump only for package gatsby-plugin-sharp

2.2.29 (2019-10-09)

Note: Version bump only for package gatsby-plugin-sharp

2.2.28 (2019-10-04)

Bug Fixes

2.2.27 (2019-09-26)

Bug Fixes

2.2.26 (2019-09-26)

Bug Fixes

2.2.25 (2019-09-20)

Note: Version bump only for package gatsby-plugin-sharp

2.2.24 (2019-09-18)

Note: Version bump only for package gatsby-plugin-sharp

2.2.23 (2019-09-18)

Bug Fixes

  • gatsby-plugin-sharp: Set a unique uuid for each job (#17693) (0926c73)

2.2.22 (2019-09-13)

Features

  • gatsby-remark-images: Add flag to suppress css background-image to prevent FOUB (#17154) (125fd01)

2.2.21 (2019-09-09)

Note: Version bump only for package gatsby-plugin-sharp

2.2.20 (2019-09-05)

Bug Fixes

2.2.19 (2019-09-01)

Bug Fixes

  • update minor updates in packages except react, babel and eslint (#17254) (252d867)

2.2.18 (2019-08-24)

Bug Fixes

2.2.17 (2019-08-23)

Note: Version bump only for package gatsby-plugin-sharp

2.2.16 (2019-08-22)

Note: Version bump only for package gatsby-plugin-sharp

2.2.15 (2019-08-22)

Note: Version bump only for package gatsby-plugin-sharp

2.2.14 (2019-08-21)

Bug Fixes

2.2.13 (2019-08-20)

Bug Fixes

2.2.12 (2019-08-16)

Bug Fixes

  • docs: dead links to sharp documentation, need to point to new host (#16687) (7c096e7)

2.2.11 (2019-08-09)

Note: Version bump only for package gatsby-plugin-sharp

2.2.10 (2019-08-06)

Note: Version bump only for package gatsby-plugin-sharp

2.2.9 (2019-07-22)

Note: Version bump only for package gatsby-plugin-sharp

2.2.8 (2019-07-17)

Bug Fixes

  • gatsby-plugin-sharp: Updates cpu core count path to corre… (#15833) (8f44086)

2.2.7 (2019-07-13)

Note: Version bump only for package gatsby-plugin-sharp

2.2.6 (2019-07-12)

Note: Version bump only for package gatsby-plugin-sharp

2.2.5 (2019-07-12)

Bug Fixes

Features

  • gatsby-plugin-sharp: enable gatsby cloud processing (#15384) (bfc2891)

2.2.4 (2019-07-11)

Note: Version bump only for package gatsby-plugin-sharp

2.2.3 (2019-07-06)

Bug Fixes

2.2.2 (2019-07-02)

Note: Version bump only for package gatsby-plugin-sharp

2.2.1 (2019-06-21)

Features

2.2.0 (2019-06-20)

Note: Version bump only for package gatsby-plugin-sharp

2.1.9 (2019-06-19)

Bug Fixes

  • fix gatsby-cli dep in source-filesystem & plugin-sharp (#14881) (2594623)

2.1.8 (2019-06-19)

Bug Fixes

  • fix gatsby-cli dep in source-filesystem & plugin-sharp (#14881) (2594623)

2.1.7 (2019-06-18)

Note: Version bump only for package gatsby-plugin-sharp

2.1.6 (2019-06-18)

Features

2.1.5 (2019-06-12)

Bug Fixes

  • gatsby-plugin-sharp: create job before async-queue processing (#14731) (f566210)

2.1.4 (2019-06-12)

Bug Fixes

  • gatsby-plugin-sharp: create job before async-queue processing (#14731) (f566210)

2.1.3 (2019-05-31)

Features

2.1.2 (2019-05-29)

Bug Fixes

2.1.1 (2019-05-24)

Note: Version bump only for package gatsby-plugin-sharp

2.1.0 (2019-05-23)

Features

  • gatsby-plugin-sharp: remove 3x DPi resolutions (#14201) (d821f0e)

2.0.37 (2019-05-09)

Bug Fixes

  • gatsby-plugin-sharp: ignore sizeByPixelDensity option and add deprecation warning (#13852) (4131a09), closes #12743

2.0.36 (2019-05-03)

Note: Version bump only for package gatsby-plugin-sharp

2.0.35 (2019-04-17)

Bug Fixes

  • gatsby-plugin-sharp: tracedSVG for fluid images should respect forced aspect ratio (#9337) (2fed2c7), closes #9204

2.0.34 (2019-04-11)

Features

2.0.33 (2019-04-09)

Bug Fixes

  • gatsby-plugin-sharp: don't write to same temporary time multiple times at a same time (#12927) (5e254e2), closes #8301

2.0.32 (2019-03-27)

Bug Fixes

  • gatsby-plugin-sharp: strip non related args when hashing resizing args (#12129) (da0b622)

2.0.31 (2019-03-25)

Note: Version bump only for package gatsby-plugin-sharp

2.0.30 (2019-03-20)

Bug Fixes

  • gatsby-plugin-sharp: bail early if sharp isn't working (#10677) (2104a9f)

2.0.29 (2019-03-15)

Note: Version bump only for package gatsby-plugin-sharp

2.0.28 (2019-03-12)

Features

2.0.27 (2019-03-11)

Note: Version bump only for package gatsby-plugin-sharp

2.0.26 (2019-03-11)

Note: Version bump only for package gatsby-plugin-sharp

2.0.25 (2019-03-05)

Bug Fixes

  • don't crash if cpu-core-count is not available (#12332) (412217d)

2.0.24 (2019-03-04)

Features

  • gatsby: configure physical cores, logical_cores or fixed number (#10257) (c51440e)

2.0.23 (2019-02-28)

Note: Version bump only for package gatsby-plugin-sharp

2.0.22 (2019-02-22)

Features

  • gatsby-plugin-sharp: Add tracedSVG option in fluid and fixed processors (#11981) (8aaaa85), closes #11912

2.0.21 (2019-02-19)

Features

  • gatsby-plugin-sharp: add defaultQuality option (8af9826)

2.0.20 (2019-02-01)

Note: Version bump only for package gatsby-plugin-sharp

2.0.19 (2019-01-29)

Note: Version bump only for package gatsby-plugin-sharp

2.0.18 (2019-01-23)

Features

  • gatsby-plugin-sharp: Add support for pngquant speed option (#9563) (b789689)

2.0.17 (2018-12-27)

Bug Fixes

2.0.16 (2018-12-21)

Note: Version bump only for package gatsby-plugin-sharp

2.0.15 (2018-12-07)

Note: Version bump only for package gatsby-plugin-sharp

2.0.14 (2018-11-29)

Note: Version bump only for package gatsby-plugin-sharp

2.0.13 (2018-11-21)

Bug Fixes

  • gatsby-plugin-sharp: use actions provided, don't assume Gatsby module location. (#9986) (54f6a85), closes #9984

2.0.12 (2018-11-06)

Features

2.0.11 (2018-11-01)

Features

2.0.10 (2018-10-29)

Features

2.0.9 (2018-10-29)

Note: Version bump only for package gatsby-plugin-sharp

2.0.8 (2018-10-24)

Note: Version bump only for package gatsby-plugin-sharp

2.0.7 (2018-10-16)

Features

2.0.6 (2018-10-03)

Features

2.0.5 (2018-09-17)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-rc.7 (2018-09-11)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-rc.6 (2018-09-11)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-rc.5 (2018-09-11)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-rc.4 (2018-09-11)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-rc.3 (2018-08-31)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-rc.2 (2018-08-29)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-rc.1 (2018-08-29)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-rc.0 (2018-08-21)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.9 (2018-08-16)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.8 (2018-08-16)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.7 (2018-07-21)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.6 (2018-07-20)

Features

  • remark-images: Added support for WebP versions in addition to fallbacks. (#6495) (65e3a78)

2.0.0-beta.5 (2018-07-13)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.4 (2018-07-13)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.3 (2018-07-11)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.2 (2018-06-20)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.1 (2018-06-17)

Note: Version bump only for package gatsby-plugin-sharp

2.0.0-beta.0 (2018-06-17)

Note: Version bump only for package gatsby-plugin-sharp