Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8957585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:01:28+00:00 2026-06-15T15:01:28+00:00

I tried using Snappy (src – http://www.codediesel.com/downloads/snappy ) and wkhtmltoimage (src – http://code.google.com/p/wkhtmltopd )

  • 0

I tried using Snappy (src – http://www.codediesel.com/downloads/snappy) and wkhtmltoimage (src – http://code.google.com/p/wkhtmltopd) on Windows 7 to get the images from URL but every time I get

error: The image cannot be display as it contains errors

Code:

<?php
require_once('Snappy/Media.php');
require_once('Snappy/Image.php');

/* 'wkhtmltoimage' executable  is located in the current directory */
$snap = new Image('C://"Program Files"/wkhtmltopdf/wkhtmltopdf.exe');

/* Displays the bbc.com website index page screen-shot in the browser */
header("Content-Type: image/jpeg");
$snap->output('http://www.bbc.com bbc.jpg');
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:01:30+00:00Added an answer on June 15, 2026 at 3:01 pm

    I’m not sure about what you are using, but http://www.artviper.net/website-tools/website-thumbnails.php has a nice site. You can even simply customize their link to show any website. It takes a while to load though. So I would advise to save them locally

    You can even customize the output width and the browser width/height.

    Simple sample code to save them locally and show image:

    <?php
    $site = $_POST['site'];
    if (strlen($site)==0)
      $site = "www.stackoverflow.com";
    
    $url = "http://85.25.9.83/artviper.php?w=360&sdx=1024&q=90&userID=AV_47845683_352324_2FC&url=".urlencode($site);
    $content = implode('', file($url));
    file_put_contents("myimage.jpg", $content);
    ?>
    
    <form method="POST">
    <input type="text" name='site' value='<?php echo $site; ?>'/>
    <input type="submit" value="Show image" />
    </form>
    
    <img src='myimage.jpg' />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried using Google's feed to JSON converter like this: http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http%3A%2F%2Fnews.google.com%2Fnews%3Foutput%3Drss%26num%3D8 The only problem
I tried using curl syntax: curl http:// localhost:8983/solr/update/csv?stream.file=/usr/local/src/apache-solr-3.6.0/example/exampledocs/my+file.csv&separator=;&stream.contentType=text/plain;charset=utf-8 with no luck. I get: -bash:
I tried using juggernaut cocoa: https://github.com/fpotter/juggernaut-cocoa Added this line to my code: JuggernautClient *client
I tried using this example: http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/modalpopup/modalpopup.aspx <ajaxToolkit:ModalPopupExtender ID=MPE runat=server TargetControlID=LinkButton1 </ajaxToolkit:ModalPopupExtender> And try using
I tried using the Google Document List API https://docs.google.com/feeds/default/private/full?max-results=100&showfolders=true for fetching list of all
I tried using AwesomeMenu in my code, the one which is here: https://github.com/levey/AwesomeMenu It's
I tried using the following code for a HTML page, but it doesn't work.
I tried using axis2 1.6 (and nightly 1.7) to generate Java code from the
I tried using this code in this thread: How can I uninstall an application
I tried using a piece of dart code creating a file with HTML5 file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.