Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API functions to return jpeg dimensions?
Message
From
17/07/2002 08:47:16
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00679166
Message ID:
00679549
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform