Size op image 
Author Message
 Size op image
Hello
Is it possible to read the width and height of a image?

Tanks
Ferry Lagarde



Fri, 27 Aug 2004 16:59:12 GMT  
 Size op image
try this out:

function GetImageSize(imgfile)
{
    var vImage = new Image();
    vImage.src = imgfile;
    alert('Width = ' + vImage.width);
    alert('Height = ' + vImage.height);

Quote:
}

<input type=button value="Get Image Size"
onclick="javascript:GetImageSize('image002.jpg');">


Quote:
> Hello
> Is it possible to read the width and height of a image?

> Tanks
> Ferry Lagarde



Fri, 27 Aug 2004 17:18:30 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Using GhostScript to change image size and covert to output image

2. "No Op" Operators

3. Need an ASP developer (job op in FL-USA)

4. trouble on op date string.

5. Problems with image size/cropping

6. Printing legal size images on an L300

7. pdf2jpeg image size

8. image size

9. another size query (image dimensions)

10. setting image size in parent frame???

11. Problems Sizing a Window to that of the Image it Holds

12. Ghostscript newbie-resolution and image size

 

 
Powered by phpBB® Forum Software