During my web development work, I need to make pretty looking square thumbnails, which will be smartly cut out from the bigger picture. Experimenting a lot with various methods, I found the best suitable one for me.