2021-01-05 - Croptool In case anyone needs to crop large amounts of images, I wrote a smallish cropping tool: gopher://lumidify.org/1/git/croptool I technically wrote it a while ago already, but I recently rewrote it to use just Xlib and Imlib2 instead of Gtk. The first version was actually a horrible Python script, but that is located in another repository, together with some of my other scripts: gopher://lumidify.org/1/git/bookcrop I originally wrote it to help me crop hundreds of images at once when digitizing books. Since I do not have any professional digitizing equipment, I just have a cardboard box cut diagonally in half and taped together as a cradle for books, a few desk lamps, a camera, and an old tripod. I first take pictures of all the even pages, then of the odd pages. When I have all of the images, I crop them - doing the even and odd pages separately allows me to have nearly the same cropping rectangle for half of the images. My cropping tool allows me to just press 'Return' to keep the cropping rectangle between images, making the whole process fairly quick. The tool then prints out a user-customizable cropping command for each image, so the output should be saved in a script or piped directly to a shell. The reason I chose to do it this way was originally because I didn't want the delay of actually performing the cropping on my old computer, but it could also be used if the cropping rectangle isn't actually needed for cropping, but rather for some other application where a rectangle needs to be selected on an image. Anyways, the new version is still a bit rough around the edges, so let me know if you find any issues.