Thumbnail.pm


NAME

Communiware::Postprocess::Thumbnail - postprocessor for generating thumbnails


SYNOPSIS

  <:Do postedit Thumbnail %PICNAME1 WWxHH icon.jpg:>


DESCRIPTION

This postprocessor generates thumbnail (small icon) from the picture uploaded via posting form.

Parameters for postprocessor are (in that order)

source
Original (uploaded) picture file name. It should be specified via submit-time PICNAME substitutions because posting can change suggested picture name.

geometry
Geometry of thumbnail is specified as WWxHH. by default it is a size of rectangle thumbnail would fit into, but original aspect ratio would be preserverd. See convert(1) (-geometry option) for advanced geometry specifications.

Your geometry spec would be passed to convert unchanged, but checked for validity.

thumbnail
Format of thumbnail is determined by its extension. If its extension is wildcard `*', extension is derived from source.

16 октябрь 2007 13:45