Downloads all images in the passed images list.
Downloads an image from the prnt.sc 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 server.
Handles getopt arguments passed to the program.
Detects whether a passed array of bytes has a valid JPEG ending.
Detects whether a passed array of bytes has a valid PNG ending.
Program entry point.
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.