🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #442

Re: JPEG properties

#442
From: Vladimir Stefanovic
Date: Tue, 10 Aug 2004 20:17
14 lines
1347 bytes
> Is there a way I can read the header and get the dimensions?

In any case you have to open the file into TImage or by fopen().
Once I needed the same thing and I discovered which bytes makes
Width and which Height. You can find them fast by any HEX editor.
I remember that they are not at the same offset of the file, but are
surrounded with the same byte pattern.

I abandoned that approach when I found the TWO such patterns in
one of (maybe) 100 JPG files.


Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <41192d5c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41175fe0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,6720cf3f1348e602
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.multimedia
References: <41175fe0@newsgroups.borland.com>
Subject: Re: JPEG properties
Date: Tue, 10 Aug 2004 22:17:15 +0200
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.233
Message-ID: <41192d5c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092169052 213.137.116.233 (10 Aug 2004 13:17:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail