gatsby-plugin-storyblok-image
Advanced tools
Comparing version 2.0.12 to 2.0.13
@@ -10,3 +10,4 @@ "use strict"; | ||
fitIn: false, | ||
fitInColor: 'transparent' | ||
fitInColor: 'transparent', | ||
fallbackQuality: 70 | ||
}; |
@@ -13,2 +13,3 @@ export interface GetGatsbyImageOptions { | ||
fallback?: false; | ||
fallbackQuality?: number; | ||
} | ||
@@ -21,2 +22,3 @@ export interface MergedGetGatsbyImageOptions extends GetGatsbyImageOptions { | ||
fitIn: boolean; | ||
fallbackQuality: number; | ||
} |
import { MergedGetGatsbyImageOptions } from '../typings/module'; | ||
interface Image extends Partial<Pick<MergedGetGatsbyImageOptions, 'width' | 'height' | 'smartCrop' | 'quality' | 'fitIn' | 'fitInColor'>> { | ||
interface Image extends Partial<Pick<MergedGetGatsbyImageOptions, 'width' | 'height' | 'smartCrop' | 'quality' | 'fitIn' | 'fitInColor' | 'fallbackQuality'>> { | ||
} | ||
@@ -4,0 +4,0 @@ export default function buildImageUrl(originalPath: string, image: Image): string; |
@@ -53,3 +53,3 @@ "use strict"; | ||
height, | ||
quality: 10, | ||
quality: opt.fallbackQuality, | ||
fitIn: opt.fitIn | ||
@@ -56,0 +56,0 @@ }); |
{ | ||
"name": "gatsby-plugin-storyblok-image", | ||
"version": "2.0.12", | ||
"version": "2.0.13", | ||
"description": "Adds gatsby-plugin-image to Gatsby & Storyblok as a content source.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -56,2 +56,4 @@ # gatsby-plugin-storyblok-image | ||
// smartCrop: true, // Default true | ||
// fallback: true, // Set false to disable fallback image. Default true | ||
// fallbackQuality: 70, // Default 70 | ||
@@ -58,0 +60,0 @@ }) |
17353
319
72