3 ms·
The current limitation is probably a good feature to have for a Web-oriented format: > Crop retangles are currently ignored and can reveal a frame larger than
by pornel 4y ago
The current limitation is probably a good feature to have for a Web-oriented format:
> Crop retangles are currently ignored and can reveal a frame larger than the actual image.
People unaware of lossless cropping may end up posting images that still contain private information they wanted to cut off. If JPEG XL ever makes it to browsers, I hope they won't support cropping, so that people will spot the problem right away, rather later when trolls find it.
- lifthrasiir 4y agoI'd like to note that "crop rectangles" here refer to the region of the virtual image canvas, whose size is recorded in the image header, where each frame gets decoded. So here what's being cropped is an image canvas, not a frame. Your point still stands in the sense that, if those rectangles exceed the canvas extent, the surplus will be indeed discarded. I believe the current libjxl doesn't produce such image anyway (why do you keep a portion of image to be discarded?) but it is still something to note.
- nightpool 4y ago> why do you keep a portion of image to be discarded? I can't speak to the context of the feature in JXL, but this is very very common in mobile image editor metadata formats, so that users can later "undo" a crop they did, because no data is actually lost. Both iOS and Android support this for all images cropped on device.