DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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,
    >
    >
    >
    >
    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links