Image très haute et étroite apparaît zoomée et coupée

Je suppose qu’il s’agit d’un bug, mais je ne peux pas en être certain. Parfois, lorsque je publie une image très étroite, le rapport d’aspect est complètement déformé et l’image est coupée. Prenez l’image suivante. En aperçu, elle semble devoir s’afficher correctement. Mais dans le message lui-même, elle apparaît zoomée et coupée. Vous devez cliquer sur l’image pour qu’elle s’affiche correctement.

Plus d’informations : Il semble que cela puisse se produire avec un léger délai. Cette image s’est affichée correctement pendant quelques instants, puis a été mise à jour vers la vue coupée. Peut-être que l’une des fonctions de post-traitement provoque ce problème.

This is intentional to prevent tall images from dominating the discussion (the full image is still available on click).

We consider it a safe default for most sites, but if your community wants to post tall images you can adjust it.

The setting that controls it is called min ratio to crop and the default is 0.45; the image you posted here is 1531x3962, so when width / height that’s 0.39 and it gets cropped. If you want similarly sized images to avoid being cropped, you could decrease the ratio a bit (maybe 0.35?) and see how it goes.

6 « J'aime »

It’s not just that, a thumbnail such as

isn’t too hot either.

The source image was rotated to make a point, but it’s pretty cool!

5 « J'aime »

Hmm, that’s interesting. If you’re worried about it taking up too much screen space isn’t it the height itself that’s the problem though, not the aspect ratio? Just not sure if I’m missing something here.

That’s not the only reason as pointed out above. Knowing when to crop thumbnails is useful so the thumbnails are actually legible and not just an indiscriminate sliver.

If I uploaded a 100x2000px image, and we capped the height at 500px and resized it the image to fit, you’d be looking at a 25x500px image — which would likely make the image content really tiny and unclear. Using the ratio assures we can detect tall and skinny images that would likely fall into that issue, and then we can crop and ensure that at least part of the image is legible as a preview.

6 « J'aime »

Makes sense. Thanks for the explanation.

1 « J'aime »