Skip to content

Upgrade Lambda Layer from base image AL2 to AL2023#1

Open
yurik94 wants to merge 1 commit intoaphilippartd:mainfrom
yurik94:main
Open

Upgrade Lambda Layer from base image AL2 to AL2023#1
yurik94 wants to merge 1 commit intoaphilippartd:mainfrom
yurik94:main

Conversation

@yurik94
Copy link

@yurik94 yurik94 commented Apr 18, 2025

Upgrade Lambda Layer from base image AL2 to AL2023, which upgrades the underline poppler + cairo versions.

previously I was getting error with jpegOptions:
image

Had to do this in order to have upgraded bot poppler and cairo, because on AL2 cairo was so old that it doesn't support jpeg options, you can now use for example:

const options = {
    jpegFile: true,
    jpegOptions: 'quality=90,progressive=n',
    resolutionXYAxis: 300,
    firstPageToConvert: 1,
}

console.log('Starting PDF to JPEG conversion...')
await poppler.pdfToCairo(inputFile, outputFileBase, options)

@yurik94 yurik94 changed the title Upgrade Lambda Layer from base image AL2 to AL203 Upgrade Lambda Layer from base image AL2 to AL2023 Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant