Can I determine the height and width of a jpg file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Can I determine the height and width of a jpg file

  1. #1
    Adam Right Guest

    Can I determine the height and width of a jpg file

    How Can I determine the height, width, and color depth of any GIF, JPG or
    BMP file ?

    Has anybody some tips for me ?

    Thanks,






  2. #2
    Rasmus Guest

    Re: Can I determine the height and width of a jpg file


    Hey Adam,

    You can find an ASP-sample page at this url:
    http://www.planet-source-code.com/vb...txtCodeId=6629

    Tested it and it seems to work a-ok with gif's, bmp's and PNG's for some
    reason it won't read my JPG's correct.

    A hint remove the - option explicit - from demo.asp since a couple of the
    var's in some of the included files is undeclared.

    This code doesn't test 4 colordepth.

    /Rasmus

    "Adam Right" <adam_right@yahoo.com> wrote:
    >How Can I determine the height, width, and color depth of any GIF, JPG or
    >BMP file ?
    >
    >Has anybody some tips for me ?
    >
    >Thanks,
    >
    >
    >
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center