Skip to content

Commit

Permalink
feat: add blur to image
Browse files Browse the repository at this point in the history
This removes the need for CSS blurring, see axe312ger/sqip#116 (comment)
  • Loading branch information
kurtextrem authored Jun 17, 2022
1 parent 047631d commit a308d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = async function lqipModern(input, opts = {}) {
async function computeLqipImage(input, opts = {}) {
const { resize = 16, outputFormat = 'webp', outputOptions } = opts

const image = sharp(input).rotate()
const image = sharp(input).blur().rotate()
const metadata = await image.metadata()

const resized = image.resize(
Expand Down

0 comments on commit a308d6a

Please sign in to comment.