We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f71052d commit 65e50ebCopy full SHA for 65e50eb
2 files changed
.changeset/bright-pants-trade.md
@@ -0,0 +1,5 @@
1
+---
2
+'astro': patch
3
4
+
5
+Fix JPEG image size determination
packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts
@@ -122,7 +122,8 @@ export const JPG: IImage = {
122
123
// Every JPEG block must begin with a 0xFF
124
if (input[i] !== 0xff) {
125
- input = input.slice(1)
+ // Change from upstream: fix non-0xFF blocks skipping
126
+ input = input.slice(i)
127
continue
128
}
129
0 commit comments