BSD Ports

graphics/p5-Image-Size 3.300 MidnightBSD

Perl5 module to determine the size of images in several common formats

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic2, lgpl2.1
Categories
graphics, www, perl5

Description

Image::Size is a library based on the image-sizing code in the wwwimagesize script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to IMG directives. Image::Size has generalized that code to return a raw (X, Y) pair, and included wrappers to pre-format that output into either HTML or a set of attribute pairs suitable for the CGI.pm library by Lincoln Stein. Currently, Image::Size can size images in XPM, XBM, GIF, JPEG and PNG formats.

I did this because my WWW server generates a lot of documents on demand rather than keeping them in static files. These documents not only use directional icons and buttons, but other graphics to annotate and highlight sections of the text. Without size attributes, browsers cannot render the text of a page until the image data is loaded and the size known for layout. This library enables scripts to size their images at run-time and include that as part of the generated HTML. Or for any other utility that uses and manipulates graphics. The idea of the basic interface + wrappers is to not limit the programmer to a certain data format.

In the other systems

SystemPortVersion
MidnightBSDgraphics/p5-Image-Size3.300
FreeBSDgraphics/p5-Image-Size3.300
OpenBSDgraphics/p5-Image-Size3.300
NetBSDgraphics/p5-Image-Size3.300nb12
DragonFlygraphics/p5-Image-Size3.300
HardenedBSDgraphics/p5-Image-Size3.300
GhostBSDgraphics/p5-Image-Size3.300

Install

Binary package:

mport install p5-Image-Size

From mports:

cd /usr/mports/graphics/p5-Image-Size && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Image-Size>0:graphics/p5-Image-Size

Dependencies

Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 4
  • bin/imgsize
  • %%SITE_PERL%%/Image/Size.pm
  • %%PERL5_MAN1%%/imgsize.1.gz
  • %%PERL5_MAN3%%/Image::Size.3.gz
distinfo 1
FileSizeSHA256
Image-Size-3.300.tar.gz23795453c9b1f86531cde060ee63709d1fda73cabc0cf2d581d29b22b014781b9f026b
Master sites 1
  • CPAN