Create your blog and photo album with postbit
Create your blog and photo album

Create new post

Content:

Upload a picture:
Tags (keywords separated by comma)

Save Cancel
screenshots:   Followers: 6 ; Following: 2

Explore screenshots's photo albums:
Logos (8)
Ubuntu - Linux (4)
Photos from posts (5)
Sites de empresas brasileiras (1)
Online tools (7)
Software (1)

How to install webimage site screen capture


Webimage is a site capture that uses webkit render engine, created by Raphael Cruzeiro (raphaelcruzeiro.com).
 
sudo apt-get install libqtwebkit-dev
sudo apt-get install xvfb
git clone https://github.com/raphaelcruzeiro/webimage.git
cd webimage
 
qmake webimage.pro
make
 
xvfb-run --server-args="-screen 0, 1024x768x24" ./webimage http://news.ycombinator.com/ output.png 1024
 
How to add PNG support to webimage:
You can add this command in webimage source code (snapshot.cpp file), near the JPG save line:
pix.save(*outputFilename, "PNG")
 
Hints if you are using cygwin:
 * type "qmake-qt4 webimage.pro" instead of "qmake webimage.pro"
 * Run webimage inside windows manager (e.g. twm) instead of xvfb-run
 
To increase image quality (JPG quality):
Before compiling, edit "snapshot.h" and change "int quality = -1" to "int quality = 90" (this parameter will enhance jpg quality)
 
If you get this error:
NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory).
Then you need to install "nvidia-current" package.
 
If you get this error:
/usr/include/qt4/QtWebKit/qwebpage.h:40:7: error: forward declaration of ‘class QNetworkReply’
snapshot.cpp: At global scope:
snapshot.cpp:150:6: warning: unused parameter ‘errors’ [-Wunused-parameter]
make: *** [snapshot.o] Error 1
 
Then you need to add the following lines to "snapshot.cpp":
 
#include <QNetworkReply>
#include <QSslError>
 
---
 
Unfortunately I was not able to run flash plugin using cygwin, but was able to capture flash correctly with Linux.
To capture flash, you must enable plugins, adding this to snapshot.cpp source:
 
  page->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
 

This can be added just before the line "page->mainFrame()->load(url);"

Post by screenshots (2013-10-20 23:30)

Post your comment:

Name: Email: Site:




| Explore users | New posts | Create your blog | Create your photo album |
| About Postbit | Our blog | Terms of use | Contact Postbit |


Copyright © 2018 - postbit.com