3488

Are there any available PHP script that can grab a screenshot of the url?

Question:

Like what browsershots.org did they can have a screenshot of the url i have inputted are there any available script like that?

Answer1:

It's pretty easy to do with <a href="http://code.google.com/p/wkhtmltopdf/" rel="nofollow">wkhtmltopdf</a> and its <a href="http://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltoimage-0.10.0_rc2-static-amd64.tar.bz2" rel="nofollow">wkhtmltoimage</a> variant:

exec("./wkhtmltoimage http://example.org/ image.png");

Note that the output filename must be in a writable location.

Recommend

  • How to Dynamic change paper format margins (Left, Right, Top, Bottom)?
  • how to convert html page to image using java or php
  • HTML to PDF conversion in php online
  • JavaFX - TabPane/Tab How to add content which fills the tab in size?
  • Create bitmap of a DOMElement Objective C
  • How to create UI similar to file replace dialog in window 7 using C# Windows Forms?
  • White Separator Above Table Section Headers
  • Tab Bar Item is a grey square
  • Xcode 4 - Is there something in Interface Builder like “reveal in canvas”?
  • Prevent session from being replicated when JSESSIONID cookie copied
  • Define height of select box
  • JVM Monitor char array memory usage
  • How should I organize my c# solution?
  • JPanel error - J Component cannot be resolved
  • “'1.0.0' is not a valid short file name” when installing Xamarin IOS.Setup and Android.Set
  • How to remove a list of accidently deleted databases from Sql Server Management Studio's tree-l
  • How do I use SFSafariViewController with a dark theme like this user?
  • How to Hide Navigation bar back button title globally in xamarin.ios
  • Xcode duplicated devices bug
  • QTP UFT Unable to find row count from table
  • Using same constraints in multiple classes
  • Synchronize windows folders
  • C# - Most efficient way to iterate through multiple arrays/list
  • netsh acl setting (need alternative method - registry settings?)
  • npm 5.4.1 install/uninstall all failing
  • Android changing fragment order inside FragmentPagerAdapter
  • Jquery popup on mouse over of calendar control
  • Remove final comma from string in vb.net
  • How do I get HTML corresponding to current DOM tree?
  • How to create a file in java without a extension
  • Google Custom Search with transparent background
  • How to install a .deb file on a jailbroken iphone programmatically?
  • DomPDF {PAGE_NUM} not on first page
  • Cannot connect to cassandra from Spark
  • Javascript simulate pressing enter in input box
  • Cross-Platform Protobuf Serialization
  • Importing jscolor library in angular 2
  • Alternatives to the OPTIONAL fallback SPARQL pattern?
  • A cron job substitute?
  • python regex in pyparsing