# Remote browser screen capture with Rials?

**URL:** <https://www.ruby-forum.com/t/remote-browser-screen-capture-with-rials/158038>\
**Category:** Rails\
**Created:** [January 18, 2009, 9:27am UTC](https://www.ruby-forum.com/t/remote-browser-screen-capture-with-rials/158038 "2009-01-18T09:27:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [January 18, 2009, 9:27am UTC](https://www.ruby-forum.com/t/remote-browser-screen-capture-with-rials/158038/1 "2009-01-18T09:27:01Z")

</div>

Hi everyone,

Does anyone know of a solution that will work with Rails that can  
capture remote screen shots of website a.k.a Magnolia, DZone etc?

Thanks,  
Schalk

---

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [January 18, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/remote-browser-screen-capture-with-rials/158038/2 "2009-01-18T13:10:51Z")

</div>

Schalk N. wrote:

> Hi everyone,
> 
> Does anyone know of a solution that will work with Rails that can  
> capture remote screen shots of website a.k.a Magnolia, DZone etc?

I would use Curl, Wget, Rio, or Net::HTTP to pull in the page (and its  
dependencies), then I would Google for “html to thumbnail”, find a shell  
command  
that works, and shell to it. A good thumbnailer will let you set the  
dimensions  
to very large, for a screen shot not a thumbnail.

May I ask if you are acceptance testing that target website?

---

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [January 18, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/remote-browser-screen-capture-with-rials/158038/3 "2009-01-18T17:42:09Z")

</div>

Hi there Philip,

Thanks for the info. These looks promising:  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/GtkMozEmbed](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/GtkMozEmbed)  
[http://mirko.lilik.it/Ruby-GNOME2/moz-snapshooter.rb](http://mirko.lilik.it/Ruby-GNOME2/moz-snapshooter.rb)

Regarding acceptance testing, so you mean the websites that I want to  
capture or the website doing the capturing?

Thanks,  
Schalk

---

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [January 18, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/remote-browser-screen-capture-with-rials/158038/4 "2009-01-18T20:08:30Z")

</div>

Schalk N. wrote:

> Hi there Philip,
> 
> Thanks for the info. These looks promising:  
> [http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/GtkMozEmbed](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/GtkMozEmbed)  
> [http://mirko.lilik.it/Ruby-GNOME2/moz-snapshooter.rb](http://mirko.lilik.it/Ruby-GNOME2/moz-snapshooter.rb)

Does Moz imply they invoke the Mozilla/Netscape/Firefox web browser?  
Ain’t that  
too heavy?

---

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [January 19, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/remote-browser-screen-capture-with-rials/158038/5 "2009-01-19T14:19:44Z")

</div>

Schalk,

The guys from [Pagestacker.com](http://Pagestacker.com) did just that. Talk to them, they are  
very friendly…

Cheers, Sazima

---

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [January 18, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/remote-browser-screen-capture-with-rials/158038/6 "2009-01-18T22:06:46Z")

</div>

Hi Philip,

I am guessing it must be the mozilla engine. I saw another one that uses  
webkit but it seems that the server needs to run the Mac OS.

Regards,  
Schalk
