What is the best way to crop an image in HTML?

It would be something like the following:

```
<img src="something.gif" x1="10" y1="10" x2="20" y2="20">

```

If that doesn't work, then I'll just use GIMP. Any thoughts on how I can get this to work programmatically?