1
URL에서 웹 사이트의 이미지 얻기 URL에서 이미지하지만내가 <code>Snappy</code> (<a href="http://www.codediesel.com/downloads/snappy" rel="nofollow">http://www.codediesel.com/downloads/snappy</a> SRC)를 사용하여 시도
error: The image cannot be display as it contains errors
코드 얻을 때마다 얻을 수 윈도우 7을 :
<?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');
?>
실행 이미지/JPEG 헤더가없는 코드 ("Content-Type을 ..")로 설정을하고, 어떤 합리적인를 얻을 수 있는지 확인 오류 메시지가 출력됩니다. – MatsLindh