Take a Browser Screen Shot of a Webpage and Convert it to a PNG Image in Ubuntu 13.10

Before I start ranting about all of the impossible ways that people claim should work, here is actual solution:

sudo apt-get install gnome-web-photo
gnome-web-photo http://google.com gnome-web-photo.png

Why was that so difficult, internet? Why so many options that do not work? I blame the google algorithms that place value on the oldest links. The oldest method is seldom the best when technology is concerned.

If the above doesn't work, here is a backup method:

sudo apt-get install wkhtmltopdf imagemagick
wkhtmltopdf www.google.com google.pdf
convert -quality 100 google.pdf google.jpg


Now let's talk about about the stuff that doesn't work.

wkhtmltoimage
Does this work on your OS? I just get seg faults.

khtml2png
This hasn't been hip in 4+ years and clearly doesn't run on modern Ubuntu installations.

webkit2png and PyWebShot
Both of these supposedly work great... if you're on a Mac. Why are you on a Mac? I have no idea. Does anyone run a Mac server? No. So what is the point of programatically taking a browser shot on them anyways? Who cares.
Apparently Apple bought some company that owned some code or something that webkit python bindings need or whatever who cares. The short story is that you cannot install pyobjc on Linux because of Nazism because you get some horrible pip error:
ValueError: invalid literal for int() with base 10: ''
So basically, it's looking for your OSX version but can't find it because you aren't stupid enough to be using a Mac. Every day I get more glad Steve Jobs died an untimely death. What a prick.

3 comments:

  1. When I was working with OS Ubuntu, I had many incomprehensible things. Constantly I had something to install and reinstall. But when I started working with Windows and installed safari for windows 10 free download https://yepdownload.com/safari, it became much easier for me to work. Immediately it did not became a whole series of problems!

    ReplyDelete
  2. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai

    ReplyDelete
  3. Initially, they make an interpretation of my PDF records into pretty much any document organize I could wish for. www.altoconvertpdftopng.com

    ReplyDelete