readAllDimensions prints out all the dimensions of images in a given directory and returns all images that are larger than 104x104px as well as the images that have the largest width and height.
dir is a directory.
If dir cannot be opened or if there are no parameters the program will terminate. If there are multiple arguments provided it will only use the first one.
Known issues ¶
The 104x104px limit is a constant which it needs not be. A flag can be implemented which can change the threshold. Some of the functions used in this script can be used for other projects but that has not been done. Nevertheless, I have to admit that this script and its files are sloppily written and need to be reworked in the future.
readAllDimensions is part of Project Sonchou, which is released under the MIT license. See https://gitlab.com/melancholera/sonchou for more information.