0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

Fix JPEG image size determination (#12542)

This commit is contained in:
Aleksandr Kadykov 2024-11-27 13:05:56 +00:00 committed by GitHub
parent f71052df01
commit 65e50eb7b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix JPEG image size determination

View file

@ -122,7 +122,8 @@ export const JPG: IImage = {
// Every JPEG block must begin with a 0xFF
if (input[i] !== 0xff) {
input = input.slice(1)
// Change from upstream: fix non-0xFF blocks skipping
input = input.slice(i)
continue
}