Monday, November 08, 2010 at 12:03 AM.

system.verbs.builtins.html.getImageHeightWidth

on getImageHeightWidth (f) {
	<<Changes
		<<5/10/09; 11:30:35 AM by DW
			<<Wrapper for height-width-getters for gifs and jpegs.
	local (lowerf = string.lower (f));
	if f endswith ".gif" {
		return (html.getgifheightwidth (f))}
	else {
		return (html.getjpegheightwidth (f))}}
<<bundle //test code
	<<dialog.alert (getImageHeightWidth ("ohio:test.gif"))
	<<dialog.alert (getImageHeightWidth ("ohio:test.jpg"))



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.