How to target a specific location on the image to be cropped using css or javascript, simple way without big scripts,
Picture before :

I want the highlighted location on the following image to be viewed :

Not the exact highlighted though, just trying to explain it doesnt has to be from the very top, i want to select specific image scales,
AND how to resize is after cropping ?
Update 2022-05-27: A new property
object-view-boxwill soon make this a lot simpler: https://ishadeed.com/article/css-object-view-box/One approach is to use an element with
overflow: hiddenthat has the image as a child, which itself is absolutely positioned within the context of the original element. The result being, the size of theoverflow: hiddenelement masks the image.Here’s an example of the approach:
HTML
CSS
See http://jsfiddle.net/Da9CT/
Another approach is to use the image as the background of the image and reposition it using
background-position:HTML
CSS
See http://jsfiddle.net/Da9CT/2/