Skip to content

Instantly share code, notes, and snippets.

@gcaixeta
Created March 12, 2011 22:47
Show Gist options
  • Save gcaixeta/867657 to your computer and use it in GitHub Desktop.
Save gcaixeta/867657 to your computer and use it in GitHub Desktop.
logo_image = case movie.width
when 640..2000 #720
"logos/logo-187x127.png"
when 464..639
"logos/logo-120x81.png"
when 360..463
"logos/logo-100x68.png"
when 320..359
"logos/logo-83x56.png"
when 220..319
"logos/logo-57x39.png"
when 176..219
"logos/logo-46x31.png"
when 128..175
"logos/logo-33x22.png"
else
"logos/transparent.png"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment