Closed samducker closed 10 months ago
Hey. Thanks for the report. That's a 30MP image, which is going to be pretty huge when decompressed. I strongly recommend using a smaller image for the blurhash calculation. unpic can easily generate resized image URLs for Storyblok, so I would pass them through that first. e.g.
import { transformUrl } from "unpic";
const url = transformUrl({
url: "https://a.storyblok.com/f/158991/6720x4480/51600d6bdf/led-birds-nest-production-pictures.jpg",
width: 400,
height: 300,
});
...gives a much more reasonable: https://a.storyblok.com/f/158991/6720x4480/51600d6bdf/led-birds-nest-production-pictures.jpg/m/400x300
Closing because I don't think this is a bug, or if it is then it's in the upstream jpeg-js
library
So when I use png files this works well, but when I use jpg format like the below
https://a.storyblok.com/f/158991/6720x4480/51600d6bdf/led-birds-nest-production-pictures.jpg
I get this error