Webページのサムネイルをキャプチャして作成


Windows環境では、このツールソフトウェアを考慮してページのスクリーンショット:IECapt.exeはlinux環境で、このツールソフトウェアを考慮してページのスクリーンショットをつかむことができます:HTML 2 Imageがキャプチャツールを取得した後、いずれかのサーバ言語でプログラムを作成し、このキャプチャツールを呼び出し、キャプチャ結果をユーザーに返すことができます.以下、IECaptを利用する.exeはPHPと組み合わせてウェブサイトのスクリーンショットの例をキャプチャします.Windows/APache 2.2/Php5.2.5で運転を通過します.参考資料:1.http://www.zubrag.com/scripts/website-thumbnail-generator.php2.http://www.guangmingsoft.net/htmlsnapshot/html2image.htm
 
IECapt
IECapt is a small command-line utility to capture Internet Explorer's rendering of a web page into a BMP, JPEG or PNG image file. The C++ version also has experimental support for Enhanced Metafile vector graphic output. IECapt is available in a C++ and a C# version.
See CutyCapt for a Qt and WebKit (Safari) based cross-platform alternative to IECapt.
Samples
Here are some samples of IECapt generated renderings:
  • Snapshot of http://www.zeldman.com
  • Snapshot of http://msdn.microsoft.com
  • Snapshot of http://www.meyerweb.com/.../demo.html
  • Snapshot of http://www.spiegel.de

  • Status
    "Works for me" :-) The current version is not very verbose, it does not catch or report errors, it has some general limitations and there are some known bugs to be addressed in future versions.
    Requirements
    IECapt depends on GDI+. GDI+ is included in Windows XP/2003/Vista/2008. If there is no gdiplus.dll on your system, you can download it from Microsoft and put it into the same directory where IECapt.exe resides.
    Download
    IECapt-2008-06-10.zip (2008-06-10, 54 KB)
    IECapt-2008-04-27.zip (2008-04-27, 51 KB)
    IECapt-2006-11-06.zip (2006-11-06, 52 KB)
    Source code
    The source code is available in the CVS repositorty .
    Usage
    Open a command prompt and ask for help:
    C:\> IECapt --help
     -----------------------------------------------------------------------------
     Usage: IECapt --url=http://www.example.org/ --out=localfile.png
     -----------------------------------------------------------------------------
      --help                      Print this help page and exit
      --url=<url>                 The URL to capture (http:...|file:...|...)
      --out=<path>                The target file (.png|bmp|jpeg|emf|...)
      --min-width=<int>           Minimal width for the image (default: 800)
      --max-wait=<ms>             Don't wait more than (default: 90000, inf: 0)
      --delay=<ms>                Wait after loading (e.g. for Flash; default: 0)
      --silent                    Whether to surpress some dialogs
     -----------------------------------------------------------------------------
     http://iecapt.sf.net - (c) 2003-2008 Bjoern Hoehrmann - <[email protected]>
    

    IECapt#
    IECapt# is a new and experimental version of IECapt written in C#. The source code is available in the CVS repositorty: IECapt.cs and IECaptComImports.idl . Feedback and patches welcome. To build it, use:
  • midl IECaptComImports.idl
  • tlbimp IECaptComImports.tlb
  • aximp %SystemRoot%\system32\shdocvw.dll
  • csc /r:IECaptComImports.dll /r:AxSHDocVw.dll /r:System.Windows.Forms.dll /r:System.Drawing.dll IECapt.cs

  • Author
    Björn Höhrmann   [email protected] ( Donate via SourceForge )