BSD Ports

graphics/p5-Image-Size 3.300 FreeBSD

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

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART20, LGPL21
Categories
graphics, www, perl5
Package size
40.0 KiB, 96.5 KiB installed

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
FreeBSDgraphics/p5-Image-Size3.300
OpenBSDgraphics/p5-Image-Size3.300
NetBSDgraphics/p5-Image-Size3.300nb12
DragonFlygraphics/p5-Image-Size3.300
MidnightBSDgraphics/p5-Image-Size3.300

Install

Binary package:

pkg install p5-Image-Size

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.3003.3003.3003.3003.300
FreeBSD:14:quarterly3.3003.300n/a3.3003.300
FreeBSD:15:latest3.3003.300n/a3.3003.300
FreeBSD:15:quarterly3.3003.300n/an/an/a
FreeBSD:16:latest3.3003.300n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 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

Commit history 0

No commits in the history this site was built from.