---
name: "ns_img"
section: "3"
platform: "linux"
package: "aolserver4"
version: "4.0.10-7"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/ns_img"
---

# ns\_img(3)

commands

## NAME

ns\_gifsize, ns\_jpegsize, ns\_pngsize - commands

## SYNOPSIS

**ns\_gifsize** *file* **ns\_jpegsize** *file* **ns\_pngsize** *file*

## DESCRIPTION

**ns\_gifsize**, **ns\_jpegsize** and **ns\_pngsize** all return a list of two elements (the width and height) of the  respective GIF, JPEG, or PNG *file*.

An error is generated if *file* does not exist (or the user id AOLserver is running under cannot open the file) or if the file is not a valid image (GIF, JPEG, or PNG respectively).

## SEE ALSO

nsd(1)

## KEYWORDS
