blog

Embed Resizer

Comments (0) · 8 March 2009 · permalink

Post this to: del.icio.us · Twitter · email

Categories: Audio / Video, Photo, This Site, Web Design, Web Useful,

It’s really easy to embed videos from sites like YouTube and photos from sites like Flickr into your own web-site. But what I’ve found recently, is that the embed size options don’t quite fit my site. So, for example, on the Subprime Crisis post just a little earlier, the smallest size offered by YouTube was 320×265. However, 320 pixels is too wide for my layout (at least on the front page). In the past, I’ve resorted to the calculator, or even Excel to find the height required for a preferred width, say 230 pixels. Now, I’ve made a little online app to do it for you:

Embed Resizer

Embed Resizer screenshot

I set about putting together some javascript that would take:

  1. the original embed size, e.g. 640×480 for a photo
  2. the width that you want for the embed

A press of the calculate button and the new width and height are shown. It also gives you the attributes formatted for width and height to put in the HTML tag.

I then added a quick select menu, so you could quickly specify whether the source was 4:3, 16:9 or YouTube (others to come?).

This is a handy little tool for my personal use, but you might find it helpful as well.

There are no comments for this entry yet.

Commenting is not available in this channel entry.
 

Menu

About

A personal blog by Simon Job.

From MathsClass

My blog about maths teaching.

Locker Problem

I recently used the “Locker Problem” in a Year 7 Maths Enrichment class (mixed ability). Here are some resources I used:
read more…

Subscribe

by RSS or Email

Follow

on Twitter

 

© 2005-2012 Simon Job · Use and recommend: ExpressionEngine, DreamHost
The posts and comments I make on this blog are made in a private capacity and do not represent the official view of my employer.