Results 1 to 8 of 8

Thread: Jpg Information

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Lisbon, Portugal
    Posts
    55

    Smile Jpg Information

    Hi,

    Is there any way to get the H. Resolution, V. Resolution, Size, And Bit information from a Jpg?

    Thanks,

  2. #2
    jim mcnamara
    Guest
    jpg's have a header, and that information is all in there.

    Go here and download the information for jpeg.

  3. #3
    jim mcnamara
    Guest
    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"

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Lisbon, Portugal
    Posts
    55
    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,

  5. #5
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    Oh, you must mean pixel height, pixel width, and bit-depth. That information I believe is found in the JPEG header
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  6. #6

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Lisbon, Portugal
    Posts
    55

    Talking

    yep, that's it!
    Do you have any idea about how can I get that Header information?

    Thanks,

  7. #7
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  8. #8

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Lisbon, Portugal
    Posts
    55

    Lightbulb

    Many thanks

    That code help me a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width