NaviServer Built-in Commands – 5.0.0a
ns_gifsize - Determine the width and height of a GIF87 or GIF89 image
Returns a list of two elements, the width and height of the GIF file specified by filename. An error is generated if the file does not exist or if it is not a GIF file.