john
0
- Joined
- Feb 3, 2002
- Messages
- 255
Anyone have any ideas of how to get image size (height and width), without actually loading the file into an Image object?
Im working on a small utility that needs to get some stats about the image files in a given directory and all subdirectories. I have a perfectly working and valid solution but Im looking to speed it up at this point. There could be millions of files and each file could be up to 6mb in size. The costliest part of the application is where it loads the images into an Image object just to get the dimensions. Everything else I can get from a FileInfo object which doesnt have allot of overhead but also doesnt have anything that will give me the dimensions.
Any pointers in the right direction, even if I have to do it as a dll outside of .NET, would be appreciated.
Thanks,
John
Im working on a small utility that needs to get some stats about the image files in a given directory and all subdirectories. I have a perfectly working and valid solution but Im looking to speed it up at this point. There could be millions of files and each file could be up to 6mb in size. The costliest part of the application is where it loads the images into an Image object just to get the dimensions. Everything else I can get from a FileInfo object which doesnt have allot of overhead but also doesnt have anything that will give me the dimensions.
Any pointers in the right direction, even if I have to do it as a dll outside of .NET, would be appreciated.
Thanks,
John