SunamoImageResizer 1.0.0.0 is done

I have finished another program, this time a purely console one, quite similar to the program ShrinkerImages. What is the difference between them? Right now 2 important ones come to mind – SI is a WPF program and always shrinks images into its own folder, whereas this program always shrinks them into the original folder and only appends the program parameters to the file name. Speaking of the program parameters, there are currently 3 of them:

  1. What the program should do (required) – the first argument is a single letter, and so far the program supports 2: c – centering and r – resizing. If this letter is not specified, the program will only print an error.
  2. Width of the new image (required) – If this second argument is not specified, the program will not know what width to resize to. I am now considering making this parameter optional for centering, in which case the image size would stay the same.
  3. Height of the new image (optional) – If you also want to specify the height, even at the cost that the image may become distorted, you can do so in this 3rd parameter. The parameters go into the name of the program’s executable file, not into the image.

Here are a few examples:

SunamoImageResizer_r-800.exe – The program calculates a new size from the original image size with a width of 800px and a height that keeps the image from being distorted.

SunamoImageResizer_r-800x300.exe – Here the resulting image will always be 800x300px.

SunamoImageResizer.exe – The program will not do anything, because no parameter was given. The program will print a shortened URI to this page. You don’t have to just shrink images, enlarging works too, but the primary purpose of the program is to shrink images. And now what the program can do:

  1. Resize images – from any size to any size.
  2. Place images in the center – fills the image margins with black. So far only exactly in the center, but perhaps we will soon see a new version that can move the inner image around, add some text below it, and maybe even put a frame around the inner image. The program’s source code is on 👻 This link retired before it was eligible for a pension.. Of course, you can also find the program on my website 👻 A page used to live here. Now there is only wind and weeds..
Categories

Leave a Reply