Embbed Auto Resizing

ziycon

  • Posts: 126
Embbed Auto Resizing
« on May 2nd, 2013, 01:55 AM »
Can the embedding of media be auto-resized to fit in size of screen to stop horizontal scrolls? I hate horizontal scrollbars?

Edit: Just looking at the attachment below, this could also be auto resized to stop horizontal scrolls.

📎 wedge_embbed.png - 166.27 kB, 735x481, viewed 162 times.

APRAI - Custom Theme - SMF 2.0.5


Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Embbed Auto Resizing
« Reply #1, on May 2nd, 2013, 02:04 AM »
A lot of that is actually configuration related; there is (and has always been AFAIK) an option to set maximum thumbnail size but we haven't used it.

Partly because we've talked about moving attachments entirely into the gallery but not yet done so for a variety of exciting reasons.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

ziycon

  • Posts: 126
Re: Embbed Auto Resizing
« Reply #2, on May 2nd, 2013, 08:59 AM »
But the maximum size only works for attachments/sig images etc. but wont work for embbed content like youtube videos and other steaming content, or will it?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Embbed Auto Resizing
« Reply #3, on May 2nd, 2013, 12:42 PM »
True enough. But for embedded content, I don't think you can automatically resize it since half of them need an actual size to work off.

Oh, that's a thought...

@Nao: since to do that (auto resize an embedded item to current width), you'd have to do that in the client, what about shifting the embed logic to the client side? It'd mean more bandwidth if more sites are used (but it's cacheable) but the performance saving would be enormous on the server.