Thumbnail
One look is worth a thousand words.
 
Plugin for Gossamer Links

This plugin for Gossamer Links will allow you to display previews for links.

Install

  1. Download plugin with Plugin Manager or directly from us (Download).
  2. In Plugin Manager choose "Install".
  3. Choose from Gossamer Links menu "Build->User Templates". In "Available templates" choose "link.html" and click "Load".
  4. Insert in appropriate place tag "<%Plugins::Thumbnail::display($URL)%>" and save the file.
  5. If you are subcribed to Thumbnail.cz: Choose from Gossamer Links menu "Plugins" and click at "Edit" in row, which begin with "Thumbnail". Enter your UserID which you will find in yours members zone.
  6. If you use Free Thumbnails you must comply with the conditions on page "Free Thumbnails".

Synopsis

Plugins::Thumbnail::display($URL)
Plugins::Thumbnail::display($URL, {width=>120, height=>90} )
Plugins::Thumbnail::display($URL, {height=>90})
Plugins::Thumbnail::display($URL, {width=>120, height=>90, border=>"1px solid red", collapse=>0} )
Plugins::Thumbnail::display($URL, {width=>120, border=>1})

Description

Plugins::Thumbnail::display($URL)
This will display preview for link. Default dimensions of thumbnail is 120x90px. If we have not the thumbnail or you are not allowed to display it, transparent GIF size 1x1px is displayed.
Plugins::Thumbnail::display($URL, {key=>value, ....} )
Possible keys are:
width
height
If size is different from 120x90, image is only scaled with HTML attributes. It is not really resized. If you specify only one dimension, the other is calculated.
border
Show thumbnail with border. Default is 1px.
collapse
If set to 1, which is default, and if we have not the thumbnail or you are not allowed to display it, transparent GIF size 1x1px with no border is displayed. If set to 0 transparent GIF is scaled to width and height you specify and with border you specify.

Download

To Do

In next release, ImageMagick or GD will be used to do real scale if width and height is changed.
Make from thumbnail link to target page.
HOME    MANAGE ACCOUNT    CONTACT    PRODUCTS   
Copyright © 2004-2014 Miroslav Suchy. All rights are reserved