Thumbnails from HTML pages created and used automatically in web application
Posted
by Jesper Rønn-Jensen
on Stack Overflow
See other posts from Stack Overflow
or by Jesper Rønn-Jensen
Published on 2010-03-03T09:11:24Z
Indexed on
2010/03/21
7:51 UTC
Read the original article
Hit count: 409
I am working on a Ruby on Rails app that visualizes product trees. The tree is built of nodes an everything is rendered in HTML/CSS3. Some of the products make several hundred SQL queries as the tree builds up (up to 800 queries on the biggest tree).
I'd like to have small thumbnails of each tree to present it on an index page. So rendering each tree once again and modifying CSS to make a tiny representation is an option.
But i think it's probably easier to generate thumbnails, crop, cache, and show these on the index page.
Any ideas on how to do this? Any links/articles/blog posts that could help me?
© Stack Overflow or respective owner