I bet that some of you had to do this: you had to create a desired size image from a photo. But you needed this new image to be a certain part of the initial photo (with a specific dimensions) but without changing the aspect ratio of the image – so it will still look natural.
Recently I had to create a head-banner for a web site of my friend. He gave me initial image and asked me to make a banner of a size 800×250 pixels from this image. It turned out to be not as simple as I thought at first, but finally I managed to do it. I want to share what I learned and so I created a tutorial.
So here we go: