Center and cut images within a box
Once I’ve faced one calling task, where the images used with <img> tag were to be centered within a view box of definite size. Of course this task would be not that difficult if the images appear as backgrounds, but in this case things are a bit tricky.