sitemap2png
Commandline tool to take screenshots of all pages defined through a sitemap.xml in different resolutions.
Note: This tool uses webkit2png.
Installation
$ gem install sitemap2png
Usage
The following tasks are available trough the command line.
Commands:
sitemap2png help [COMMAND] # Describe available commands or one specific command
sitemap2png load SITEMAP PATH # Load sitemap.xml & save screenshots
Commands
load
Usage:
sitemap2png load SITEMAP PATH
Options:
-w, [--width=N]
# Default: 1024
-d, [--delay=N]
# Default: 0
Example Usage
$ sitemap2png load http://mysite.com/sitemap.xml /path/to/destination -w 1900
Development
When developing you can use the given rake
tasks:
$ rake -T
rake build # Build sitemap2png-0.1.0.gem into the pkg directory.
rake install # Build and install sitemap2png-0.1.0.gem into system gems.
rake release # Create tag v0.1.1 and build and push sitemap2png-0.1.0.gem to Rubygems```
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
Copyright (c) We Are Interactive under the MIT license.