Photo Size, Height, Width Problem

a_20120

tan
Local time
Today, 04:00
Joined
Nov 21, 2006
Messages
175
Hello every One,
Could some one plz help me how to find the size, width, and height of the Photo which I upload in my project before saving that to my table. also if there is no photo in the image control of the subform a message displayed? see for further information the attached file
 

Attachments

Re

FileLen is used to find the Image size in Byte, but I dont know how to find the height and width of the Picture.

I am interested to know How to find the Height and Width of the Picture
 
Unfortunately, the easiest way to know the dimensions of the picture require you to import it first and then check its properties. I don't think the picture dimensions are available through the FileSystemObject methods.

Why do you not want to import it first? Are you embedding the picture? You should link it. That way you don't waste so much space inside the DB.
 
Thnx for replying,
I Save the path of the photo into table, How it is possible to get the dimension of the photo after we enter it? I dont want the dimension of the Image control but I want the dimension of the Photo?
Could u plz tell me HOW?
 
Hi again,
You said the easiest way to know the dimensions of the picture require you to import it first and then check its properties.
How can I check the picture properties not the Image control Properties?
 
I will have to play with this, but I note that on WinXP, there is such a thing as the advanced properties of the picture. The pixel dimensions are in the advanced properties. Perhaps there is a way to get to them.

If no other method works, you might want to open the file using IE (make an application object) and see if you can get to the image properties through that. But I'll see if there is a way to get the advanced properties directly.

Or you could play with that yourself with file system objects.
 
Are you importing the picture from an image control? If this is a case, just reference the ImageHeight and ImageWidth properties using this syntax:

Me.ImageControl.ImageHeight

This information is displayed in the measurement of Twips, which would need to be converted if you want it displayed in pixels, http://support.microsoft.com/kb/210590

Save the information to your table for later reference. Is this what you mean?

Scott
 

Attachments

Last edited:

Users who are viewing this thread

Back
Top Bottom