Magic numbers.
Shell return values.
Builds an associative array of HTTP GET headers to use when requesting information of images from the server.
Downloads all images in the passed images list.
Downloads an image from the prnt.sc (prntscr.com) server.
Ensures the target image directory exists, creating it if it does not and returning false if it fails to.
Enumerate images, skipping existing ones.
Fetches the JSON list of images for a passed cookie from the prnt.sc (prntscr.com) server.
Handles getopt arguments passed to the program.
Detects whether or not a passed array of bytes has a valid JPEG ending.
Detects whether or not a passed array of bytes has a valid PNG ending.
Program entry point.
Chooses between two values based on if the passed numeric value is one or many.
Prinst the getopt help screen to the terminal.
Program main logic.
Aggregate of values supplied at the command line.
Embodies the notion of an image to be downloaded.
Lightshot prnt.sc (and prntscr.com) gallery downloader.