Files
cappuccino/Tools/imagesize
Glenn L. Austin 8d7c47a5e4 Fixed: Remove explicit use of Mac OS X 10.5 SDK, replace with "latest OS X"
The fontinfo and imagesize Xcode projects still explicitly refer to using the Mac OS X 10.5 SDK, while all other Xcode projects simply refer to the latest Mac OS X SDK, with no explicit OS version. This change modifies these two projects to mirror other Xcode projects in the project.

Fixes #1957
2013-06-28 10:26:44 -07:00
..

NAME
    imagesize -- retrieve size information for an image

SYNOPSIS
    imagesize [-n] path

DESCRIPTION
    imagesize is a tiny utility that returns the size of an image.
    The path may be either an absolute path or a path relative to the current directory.

    If the -n option is passed, the output will not be terminated with a linefeed.

EXIT STATUS
    imagesize exits with a return status of zero if there are no errors.
    imagesize exits with a return status of 1 if any arguments are invalid, or a status of 2 if the image
    cannot be found or the file at the given path is not a valid image.

OUTPUT
    imagesize outputs a stringified JSON object with the following structure:

    {
        width:<int>,
        height:<int>
    }

    If -n is not passed, the JSON is terminated with a linefeed. The fields of the object are as follows:

AUTHORS
    Aparajita Fishman, Victory-Heart Productions
    http://www.aparajita.com