Will
Member
Inactive
Posts: 84
What I collect: Venezuela: ESCUELAS 1871-1880, Locals up to 1903. Cinderellas and BOB | Colombia: Up to 1940. States!
|
Post by Will on May 26, 2020 1:11:07 GMT
I have no idea if the developer of this nice little program is in TSF but I'll leave my wishlist here, just in case. - A setting to set the output DPI. Right now it seems to be fixed at 96dpi, regardless of the resolution of the input image.
- Smarter background color selection. Right now, it seems to be expecting a very dark color. What if it averages the color of the, say, 5px perimeter and set a threshold based on this average color? If we want to get fancy, the threshold could be based on the standard deviation of the colors found in this perimeter (you may want to do some quantization first)
- Please, pretty please! Let me resize my window!
Thanks again for you time and for making this available for free! Will
|
|
|
Post by PostmasterGS on May 26, 2020 3:32:33 GMT
Will, I'm here. I'm working on a new version, but no guarantees as to what it'll include. A few thoughts on your wishlist: 1. Currently, the DPI of the output is identical to the DPI of the input. Unfortunately, the image manipulation software that StampFix uses doesn't have the ability to write image metadata, so the DPI of the output file isn't reflected correctly in the metadata. Most apps and operating systems will see this and substitute 96 DPI as a default. But, the DPI isn't actually 96 DPI, it's whatever the original image was. My recommendation in the interim is to use one of the many free image metadata editors available on the Internet to reset the DPI in the image metadata to the correct DPI. I'm working on fixing this, but it requires adding additional software under the hood just to handle metadata read/write. WRT changing the DPI -- you can currently resize an image (height or width in pixels) before saving, but you can't change the DPI. That's not likely to change at any point, as it's very difficult to do without significantly degrading the image quality. 2. Not sure what you're wanting here. The threshold is a completely manual setting, with the exception that it loads one of your two defaults (dark or light background) based on a sampling from the top left of the scan. You can then edit it as necessary to get a good selection. It's not possible to completely automate the threshold, as it requires a human to tell when the stamp is selected properly. 3. I'll look into this. It greatly increases the complexity because it requires all the visual elements to be scalable. It may be do-able with a complete redesign of the interface (which I'm toying with), but the fact that many collectors use 1995-era screen resolutions is a complicating factor -- I have to keep the UI elements from getting hosed if the screen resolution is too low. Thanks for the feedback.
|
|
Will
Member
Inactive
Posts: 84
What I collect: Venezuela: ESCUELAS 1871-1880, Locals up to 1903. Cinderellas and BOB | Colombia: Up to 1940. States!
|
Post by Will on May 26, 2020 23:50:13 GMT
You're welcome!
RE: 1) Interesting! And it seems that every program handles it differently! GIMP reports 300dpi. But that's ok. I don't really mind what it says as long as it preserves the original dpi.
Re 3) It's okay... that's actually not as "urgent" as my original message implies. To be honest, I rather have a command line option so I can automate the process.
And regarding 2) I understand what you mean... and what the program does. What I was suggesting is that it is possible (I've done it) to a) Auto-select the actual background color, be it black, white, blue, purple, whatever... and b) Automatically estimate the threshold, at the very least for a default value.
You can "guess" what the background is by doing a quantization on whatever sample you take (I was suggesting the perimeter, you are using a viewport at the top left, both are just fine). The top color will give you the most likely background color. Now, for the threshold, you can use the standard deviation of the matrix you gathered from the quantization. This will most likely work on most scenarios, but you can always leave it up to the user. You could even have a 0-100% scale for it and make it simple.
But anyway... the most important of those wishes is already there!
Anyway, thank you very much for your work on this, and for make it available for free!
|
|