https://bugzilla.wikimedia.org/show_bug.cgi?id=65451

--- Comment #3 from Waldir <[email protected]> ---
(In reply to C. Scott Ananian from comment #2)
> What about implementing bug 35756 so that the images fill their specified
> bounding box?

Thanks, I didn't know about that one. I'll add it in the see also field.

The approach is interesting but not ideal, since that would crop images so they
fit the square shape. When you said "fill their specified bounding box" I
thought you meant just removing the square padding that currently is added in
galleries and category listings (I have no idea what the purpose of that space
is, considering that the bounding boxes are already separated from each other
with white space).

When I say not ideal, I mean that it's rather tricky to ensure tat the crop
indeed shows the core elements of the image. Some smart cropping (or even
[[seam carving]]) would have to be made (e.g. see http://www.croppola.com,
http://cropp.me, and Reddit's thumbnail generation code:
https://github.com/reddit/reddit/blob/a6a4da72a1a0f44e0174b2ad0a865b9f68d3c1cd/r2/r2/lib/scraper.py#L57-84
)

I'd much rather the approach proposed in comment #0, which would not only
preserve all the content of the images but would also make the galleries more
dynamic and visually interesting.

Still, I think a first step could be removing the wasteful padding of the
current bounding boxes; that would be fairly simple to do. Since bug 30270
seems to refer to something slightly different (outer padding/margin, rather
than inner padding), I'll probably open a different bug for this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to