Click to See Complete Forum and Search --> : Jpg Information
MacDuke
May 30th, 2001, 04:10 AM
Hi,
Is there any way to get the H. Resolution, V. Resolution, Size, And Bit information from a Jpg?
Thanks,
jim mcnamara
May 30th, 2001, 05:35 AM
jpg's have a header, and that information is all in there.
Go here (http://www.wotsit.org/search.asp?page=5&s=graphics) and download the information for jpeg.:D
jim mcnamara
May 30th, 2001, 05:37 AM
Oooooops. I kinda lied a little. You said size. Most graphics formasts map data onto a device. The physical output device can be any size, so size is purely relative. In other words, there is nothing that says 'I am a picture that is 10cm x 40 cm"
MacDuke
May 30th, 2001, 07:03 AM
You know when we see a JPG Property in windows explorer?
The windows explorer shows the Horizontal resolution, vertical resolution and bit count, I know this values but only for BMP :-))
... and nead to know also for JPG
Thanks,
csammis
May 30th, 2001, 04:04 PM
Oh, you must mean pixel height, pixel width, and bit-depth. That information I believe is found in the JPEG header
MacDuke
May 30th, 2001, 04:36 PM
yep, that's it!
Do you have any idea about how can I get that Header information?
Thanks,
csammis
May 31st, 2001, 09:28 AM
I found this at www.freevbcode.com
Follow this link and download the file listed, it's a sample program with source code for getting info about image files.
http://www.freevbcode.com/ShowCode.Asp?ID=2275
They've got a lot of good code there besides that :)
MacDuke
May 31st, 2001, 12:24 PM
Many thanks
That code help me a lot!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.