Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get image size without loading it
Message
De
07/10/2013 08:32:08
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
05/10/2013 04:59:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01584779
Message ID:
01584888
Vues:
57
>>About 99% of it is jpg, so a jpg-only solution would work perfectly. The remainder can be converted to jpg :).
>
>IIRC, JFIF is the hardest header format to read :-{
>Link to a C version you might be able to convert : http://www.64lines.com/jpeg-width-height
>No idea how reliable it may be tho.

The faithful old AcdSee manages this quite well and rather fast, and it's the same old version from 1998. So the format hasn't changed.

>Occurs to me that if the list of images changes only rarely you could use LoadPicture() when a file is added and store filename,width and height in a lookup table for future use?

That's what I did first, but then that was an early version of this, back in the times when there was never enough disk space. Now I'm reconsidering... though the above link gives some hint to the nature of the JPEG header(s). I was also storing a minimal webpage which would display the picture in a browser object, plus some data (mostly date and time, nothing much). Well, an interesting pastime for, I guess, november, when the weather is... well, you'd call it nice.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform