the question you are asking really doesnt make much sense... you can get mime type, dimensions, image type, file size, color information, etc. with various already available functions. you seem to be referring to an html issue with the <img/> tag. this is more of a html issue; i can't even figure out if you want to generate the attributes (alt, title,...) or if you want to extract this information from an existing html page.