ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
like title says maybe a feature like this article: https://www.mindgems.com/article/resize-window-to-specific-size-set-window-size-in-pixels/