You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v4.9.2
Node v18.17.1
System Linux (x64)
Package Manager npm
Output static
Adapter none
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using the <Picture> element to generate smaller image sizes from a source image, Astro produces images with an inflated file size. Images exceed the original file size by as much as 3x.
What's the expected result?
I expect the file size to be no larger than the source image and in many cases smaller than the original image.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using the
<Picture>
element to generate smaller image sizes from a source image, Astro produces images with an inflated file size. Images exceed the original file size by as much as 3x.What's the expected result?
I expect the file size to be no larger than the source image and in many cases smaller than the original image.
The specific code for the reproduction can be found here: https://github.com/NateWr/astro-image-reproduction/blob/main/src/pages/index.astro. (I was unable to reproduce any asset manipulation in Stackblitz -- perhaps this is disabled for security/performance.)
The source image is ~443kb:
When running
npm run build
, the following images and sizes are generated:Link to Minimal Reproducible Example
https://github.com/NateWr/astro-image-reproduction
Participation
The text was updated successfully, but these errors were encountered: