Difference between revisions of "Showing Shared Media at the right aspect ratio"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '{{KBmaster}} Shared Media is setup to show square media. However, you can change this to fit any aspect ratio. Doing so isn't instant and could probably be easier in the fut...')
 
m (1 revision: Redirecting KB articles to current versions on the Lithium platform)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{KBmaster}}
{{#widget:Redirect|url=/t5/English-Knowledge-Base/Shared-Media/ta-p/700145}}
 
[[Shared Media]] is setup to show square media. However, you can change this to fit any aspect ratio. Doing so isn't instant and could probably be easier in the future. There are three key things you need to know and do:
 
# The exact dimensions of the media.
# The offset alignment of the media — calculated with an '''Align''' button.
# The aspect ratio of the media — easily calculated using a tool, as we'll see.
 
 
 
This example presumes you already know how to [[add Shared Media to an object]] and have the URL ready. This kind of content works (this isn't a complete list, just examples):
 
* Direct links to a supported image type like an animated GIF, JPG, or PNG.
** By the way, we used to need special converters to show animated GIFs in Second Life, and they'd appear at reduced quality. Now, you can show it as-intended.
* Rich interactive media like Flash that's ''isolated'' on a page.
** This technique doesn't directly work if there's a page with a Flash media embedded in the middle of whole bunch of other stuff, but usually works if the Flash media is the ''only'' thing on the page.
* data: URIs that fall under the above.
 
== Find the media's dimensions ==
 
View the media in an external web browser.
 
* If it's an image, most browsers show the size in pixels (like <code>500x374</code>) in the title bar.
* If it's Flash media or something else, try viewing the page source (usually available as a context menu option if you right-click the page). [http://lecs.welcome-island.secondlife.com.s3.amazonaws.com/video-1/index.html Try this example] and look for where it says <code>height="433" width="720"</code>.

Latest revision as of 11:25, 2 March 2011

Redirecting to http://community.secondlife.com/t5/English-Knowledge-Base/Shared-Media/ta-p/700145