ns_jpegsize(3) commands

Other Alias

ns_gifsize, ns_pngsize


ns_gifsize file

ns_jpegsize file

ns_pngsize file


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).