wardpeet / gatsby

Build blazing fast, modern apps and websites with React
https://www.gatsbyjs.org
MIT License
0 stars 1 forks source link

minify transform options when using `resize` before we generate outpath paths #5

Closed pieh closed 4 years ago

pieh commented 4 years ago

fixes:

one operation from fixed:

{ options:
   { height: 200,
     width: 200,
     cropFocus: 17,
     toFormat: 'png',
     fit: 'cover',
     background: 'rgba(0,0,0,1)' },
  argsDigestShort: '91f23' }

operation from resize:

{ options:
   { width: 200,
     height: 200,
     jpegProgressive: true,
     pngCompressionLevel: 9,
     pngCompressionSpeed: 4,
     grayscale: false,
     duotone: false,
     base64: false,
     traceSVG: false,
     toFormat: 'png',
     cropFocus: 17,
     fit: 'cover',
     background: 'rgba(0,0,0,1)',
     rotate: 0,
     trim: 0,
     quality: 50,
     jpegQuality: null,
     pngQuality: null,
     webpQuality: null,
     toFormatBase64: '',
     sizeByPixelDensity: false,
     maxWidth: 800 },
  argsDigestShort: '6ca42' }

where output paths for resize was using hash from fullOptions instead of minimized options (as it does in fixed and fluid)