Skip to content

Commit

Permalink
Fix JPEG image size determination (#12542)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadykov authored Nov 27, 2024
1 parent f71052d commit 65e50eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/bright-pants-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix JPEG image size determination
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 65e50eb

Please sign in to comment.