Converting HTML into an Image

Awesome. I’m eager to see the results as well. I have not addressed
this issue as other issues have come in front of it. But I will be
looking into it soon, probably next week.

Michael

Tim H. wrote:

Hi Michael,

Did you get this solved? Please email me at tmhaines at gmail dot com
if you did.

I’ve found one way - but it’s ugly and skips out of the Rails app.

Tim.

Hey all, someone just forwarded me this thread. Thanks everyone for all
the great comments / suggestions thrown out so far.

I am trying to do something very similar, and have a bounty of at least
$250 waiting if someone can come up with a solution. (not much i know
but hey)

http://jobs.rubynow.com/jobs/show/405

Requirements

  • all self-contained on a hosted linux box (a dedicated server at
    LayeredTech.com w/o KVM access… so, not sure if KDE-type stuff will
    work)
  • does not require using any pay-for ($$$) webservice like Alexa or
    something to grab the images
  • shelling out to use external libraries/scripts/etc is A-OK
  • does not have to be real-time. the command that does this can be
    called later via automated cron

Something like this (+ the required system libraries/binaries used
installed) would be swell:

class WebGrabber
def self.grab(url, output_dir)
… (your magic here) …
end
end

So you could just do:

Webgrabber.grab(‘http://www.google.com/’, ‘/static/images’)

And it would dump at least one image to that directory. A few default
sizes would be slick as well but a little RMagick after the fact should
do the trick, right?

If anyone comes up with the solution I’ll PayPal ya the $250 and we can
make the project open source for all to enjoy. yay!

FYI - this is for a new digg-esque site built in 100% RoR (not
open-source sadly as daddy still has to pay the bills):

http://ummyeah.com/

  • Fez