>>>I never did it, but IIRC, it is more or less like this: Use a VFP Image control. Load the picture, by specifying the .Picture property, and then ask for its .Height and .Width properties.
>>
>>Thanks, Hilmar. That would probably work all right, but I don't think it's going to be practical for what I'm attempting to do, which is: parse and rewrite HTML code on the fly where I need to replace certain
<img>
tags with new images where the "width=nnn" and "height=nnn" parameters may be different than the original. So I need to be able--within a .prg---grab the width and height values and replace the text in the HTML file with the new image file location and proper size values.
>
>I don't understand, why not. After getting the image dimensions, you can insert that into the new HTML. If I understand correctly, you want the real size, and avoid having a redimensioned picture.
>
>On the other hand, I believe that if you omit "width=nnn", etc., the browser will automatically render the picture in its real size - no redimensioning.
That's a very good point; I think you're right, so maybe I'm making a mountain out of a mole hill. I'll try your code as well. Thanks again.
Ray Roper