So you use Pelican static site generator and you want to add a custom Jinja filter for use in your templates? Great!

In this post I show how to take a simple Python function and make it accessable as a custom filter. As an example we will create a filter called LinkPeek which will allow us to easily embed website screenshots into our pages.

First, we need to ...

Continue reading: How to add a custom Jinja filter to Pelican

Images on hover-lib


Posted 2 years ago
by Russell to gift of code


We built hover-lib at LinkPeek because we needed a way to add on-hover images to select links. Images are loaded just-in-time to reduce bandwidth usage.

Update: We wrote a really neat example of what hover-lib does: Website Screenshot of every two-letter domain

The hover-lib library may be downloaded here: hover-lib.

How to use hover-lib

include hover-lib.css in the head:

<head>
  <!--   include the hover-lib stylesheet  -->
  <link rel="stylesheet ...
Continue reading: Images on hover-lib

How to batch convert xcf to png


Posted 2 years ago
by Russell to gift of code


My favorite image manipulator program is GIMP and I often find myself with a directory full of xcf (gimp project files) that I would like to convert into PNGs for use on the web or in a video game. I like to keep my "master" copy of image assets in xcf format to preserve layer and history meta-data.


Today I was experimenting with an idea called sketch notes ...

Continue reading: How to batch convert xcf to png

This post explains how to build a link which will display an image when a user hovers over their mouse. This technique could be used to create help balloons or link previews.

OK, lets build the special link one step at a time.

  1. Create a link:

    <a href="https://linkpeek.com">website screenshot service</a>
    
  2. Add a place holder image like this transparent 1x1 pixel png. Notice that ...

Continue reading: Display image on hover using HTML, Javascript and CSS

We are please to release filevault into the public domain. This module allows programmers to easily create and maintain large and complex directory trees. The LinkPeek API uses this module heavily!

The latest documentation and verison live here: [sourcecode]

A Vault will:

  • Create a directory tree of custom depth
  • Spreads files out which keeps CLI snappy when traversing the tree
  • Scale to hundreds of thousands of files
  • Obfuscate ...
Continue reading: filevault will manage a tree of directories and files

We are please to release logmongo into the public domain. This module allows programmers to easily log messages to a capped MongoDB collections. [sourcecode]

What does it do?

  • Gracefully creates capped collections.
  • Auto expires oldest records first and solves log rotation.
  • Writes complex (dicts and kwargs) log records.
  • Logs asynchronously.
  • Collects logs locally or remotely or in a central location.
  • Allows access to logs via MongoDB queries and ...
Continue reading: logmongo will log messages to a capped MongoDB collections
Browse the blog archives or subscribe to the full-text feed
.


Let us capture, store, and update webpage screenshots for you.

See Plans and Pricing
No Risks, Pay-as-you-go