Closed 12Me21 closed 2 years ago
oh, and be careful of requests like api/File/raw/very-large-jpeg?png=true
where, the image would look identical, but with a massively increased filesize
This feature only makes sense for small images, so maybe set a size limit of ~300px or something?
I'm pretty sure that filtering is also to blame, to downscaling algorithm is probably trash. But yeah the jpeg is probably a big part of it too. Hm... I can look into it. What sizes are we talking here, 50?
small downscaled jpeg files look really bad, because the format/quality is preserved. below a certain size, you should probably increase the jpeg quality setting, or convert to png. (for things like avatars, thumbnails, icons, etc.)
maybe have a
?png=true
query param for/File/raw
?