-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|535|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> File Access


 
Dan
Created : 28 October 2018
Edited : 28 October 2018
System : Windows
Language : Blitz

Extract image width+height without loading - bb3d

Reads image information from bmp/jpg/png/tga/gif without loading the file

Latest Update

This sourcecode is not my own, i'v just added some fixes, so now it can read the jpg file size corectly (see the sourcecode for more info).

Below is a demonstration program, but you need the acceptfiles.dll and optionally the user32.decls with
the api_GetSystemMetrics% addition (see the below code for more info)

The demo-program opens a window in which you can drag'n'drop image files.
For each file height and width will be displayed.


 

Comments


Tuesday, 30 October 2018, 14:59
zzoom
Nice work, thanks for sharing.