Nuke all the privacy-bugs from youtube embeds
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bèr Kessels 37679fe617 Merge branch 'hotfix/0.7.1' 7 years ago
assets Thumbs are generated. 8 years ago
bin Relative includes and reqiures. Still ugly, though. 8 years ago
lib Add option to override overlay-image in local environment. 8 years ago
spec Add option to override overlay-image in local environment. 8 years ago
.gitignore re-ignoring thumbs dir. 8 years ago
Gemfile Move gem dependencies into gemspec. 8 years ago
Gemfile.lock Move gem dependencies into gemspec. 8 years ago
LICENSE Releasing under MIT 8 years ago Add example screenshot and tags. 8 years ago
tubemp.gemspec Remove overly strict dependency 7 years ago


YouTube embeds without third party trackers.

tubemp is a tiny web-application which creates and serves thumbnail-images from YouTube embed-codes. These images link to the video and look like embedded videos.

It offers a replacement for embedding YouTube videos on your site. A replacement without third-party cookies and tracking “bugs” following your visitors.

Many countries (most notably the E.U-countries) don’t allow third party trackers on many of their sites. Many site-owners don’t want to place content on their websites that allows companies like Google to track their visitors.

Placing an image that looks like a YouTube embed, but served from your own domain, is a good solution for all this.

This tiny application aids in that.


  • Simple, friendly web-interface.
  • Bookmarkable:

Demo and examples

A demo installation can be found at NOTE that this is a demo; images will be wiped; when you include them from this service on your website, you will see broken images on your website at some point.

A hosted version is being developed and will replace the demo.


Example code:

<a href=""><img src="" alt="Tony Tribe , Red Red Wine"/></a>


The quick way

  1. $ gem install tubemp
  2. $ tubemp
  3. Open a browser and visit localhost:4567

The long way (nginx and passenger)



You can get the result as JSON by adding .json to the tags page:


This returns a hash with the variations of the tags. For example, in PHP:

php > print_r(json_decode(file_get_contents("")));
stdClass Object
    [basic] => <a href=""><img src="http://localhost:9393/thumbs/D80QdsFWdcQ.png" alt="Tony Tribe , Red Red Wine"/></a>
    [overlay] => <a href=""><img src="http://localhost:9393/thumbs/D80QdsFWdcQ_overlay.png" alt="Tony Tribe , Red Red Wine"/></a>

Author and Contributors

Bèr berkes Kessels


Bundler installs everything, but for reference:

  • Sinatra
  • RMagick
  • video_info by Thibaud Guillaume-Gentil
  • rspec for testing and development


  • Write installation instructions for nginx
  • Make a wordpress and Drupal module, using the JSON API.
  • Make the gem mountable; current gem is a hack and e.g. stores the cached images in the gem-dir.