Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API functions to return jpeg dimensions?
Message
De
17/07/2002 08:47:16
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00679166
Message ID:
00679549
Vues:
23
Hello again Sergey,

You might be interested in this. I tried the mthod you suggested using:


oImg=createobject(image)
scan
oImg.picture=images.filename
endscan

for 450 records in the images table (over a fairly slow network), and it took around 400 seconds.

I did the same scan -endscan using a low-level read and parse of the jpg file headers using this jpgsize() function from Thomas Gehrke.See:


http://www.wikis.com/wc.dll?WC~JpgSizeFunction
http://www.wikis.com/wc.dll?WC~GifSizeFunction

This took only 37 seconds! The simplest code is not always the fastest...

Thanks again anyway

John
Dr. JW Faithfull
Curator in Geology
Hunterian Museum
University of Glasgow
Glasgow G12 8QQ
Scotland
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform