I just released version 0.4.0 of phancap, the self-hosted website screenshot API. It adds support for internationalized domain names and adds meta data to the generated images.
Some days ago I wondered how to embed an image's original URL into its meta data, and phancap now uses the same idea to add information about the screenshotted page, and the configuration used to achieve the website screenshot:
$ exiftool -S -G cweiske.de-bd30f41492ae162d922800b41210629c.png |grep XMP [XMP] Creator: phancap [XMP] Description: Capture options: browser window: 1024x0, screenshot size: 1024x0, format: png, mode: full page height [XMP] Subject: http://cweiske.de [XMP] Title: Screenshot of http://cweiske.de [XMP] Source: http://phancap.cweiske.de/imgcache/cweiske.de-bd30f41492ae162d922800b41210629c.png
Meta data
exiftool is used to add the additional information to png, jpg and pdf screenshots:
- XMP:creator
- phancap
- XMP:description
- Human-readable list of options that were used to generate the screenshot. With that the screenshot can be reproduced.
- XMP:subject
- URL of the website that was captured
- XMP:title
- "Screenshot of " + URL
- XMP:source
- URL under which the screenshot was originally stored
The addition of those meta data helps to make phancap a suitable tool for archival copies on the indieweb.