| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Browse archives
|
imgsrc
Submitted by reeses on Sun, 2004-04-18 13:40. | html
imgsrc (source) is a tiny program that takes a filename as input, and stuffs an <img src="foo" width="bar" height="baz"> tag string into the Windows Clipboard. It will pull the width and height out of most gif, pcx, png, and jpeg files. The bmp format was too gross to do in one sitting, so I left it out. You shouldn't be putting bmp files on your website, anyway. In case you were wondering, pcx was horrendously easy, which is why I bothered to put it in. Grab the cheesy Unix port that dumps the string to stdout instead of the clipboard. It's very similar to a small component of a perl application called imgsizer, but it doesn't have dependencies on any external applications. (apart from a std c compiler) Post new comment |
SearchUser login |