Skip to content

Commit

Permalink
chore(): update convert()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenVelocity committed Nov 25, 2021
1 parent 01f631d commit 6bcea22
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/internal/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,9 @@ const convert = async (
})

if (type === 'full') {
const { pages = 1 } = await img.metadata()
const pageHeight = 512
img.resize({
width: pageHeight,
height: pageHeight * pages,
img.resize(512, 512, {
fit: 'contain',
background
}).webp({
pageHeight
})
}

Expand Down

0 comments on commit 6bcea22

Please sign in to comment.