473,239 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

Reading Image Properties without loading as Image

I'm trying to find a way to quickly read image headers (specifically jpgs at
the moment) with out loading the whole image as an System.Imaging.Image.
Anybody point me in the right direction or am I going to need to write a
header parser from scratch?
Jul 21 '05 #1
3 2266
"Steve Tooke" <St********@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
I'm trying to find a way to quickly read image headers (specifically jpgs
at
the moment) with out loading the whole image as an System.Imaging.Image.
Anybody point me in the right direction or am I going to need to write a
header parser from scratch?


I'm also interested in this, and additionally whether one can read out the
contents of TIFF file IFDs without reading in image data.

Steve
Jul 21 '05 #2
Hi Steve,

I ended up having to do this myself, I haven't really tidied the stuff up
much, but this might help you.

http://pkl.net/~tooky/ImageFiles.zip

Steve

"Steve McLellan" wrote:
"Steve Tooke" <St********@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
I'm trying to find a way to quickly read image headers (specifically jpgs
at
the moment) with out loading the whole image as an System.Imaging.Image.
Anybody point me in the right direction or am I going to need to write a
header parser from scratch?


I'm also interested in this, and additionally whether one can read out the
contents of TIFF file IFDs without reading in image data.

Steve

Jul 21 '05 #3
Hi,

Thanks, I'll have a look at it. I think we're considering moving away from
using the GDI+ stuff at all because of its limitations (CMYK, greyscale,
16-bit support etc.). I'm not generally that impressed by its lack of
support for handling image files; hopefully they plan to address it in the
future.

Thanks again,

Steve

"Steve Tooke" <St********@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
Hi Steve,

I ended up having to do this myself, I haven't really tidied the stuff up
much, but this might help you.

http://pkl.net/~tooky/ImageFiles.zip

Steve

"Steve McLellan" wrote:
"Steve Tooke" <St********@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
> I'm trying to find a way to quickly read image headers (specifically
> jpgs
> at
> the moment) with out loading the whole image as an
> System.Imaging.Image.
> Anybody point me in the right direction or am I going to need to write
> a
> header parser from scratch?


I'm also interested in this, and additionally whether one can read out
the
contents of TIFF file IFDs without reading in image data.

Steve

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Thomas | last post by:
Hi all, I'm in search of a fast solution to reading image dimensions. I know you can get the image dimensions by loading a file into an image object, and then reading the height/width...
20
by: http://links.i6networks.com | last post by:
I need to display pictures, but only as large as AxB. If it is smaller than AxB, then I will display it in the original size, if it is larger than AxB, I will resize it. However, if the size is...
2
by: Roger Withnell | last post by:
I browse for an image using form input type file and call a JavaScript function with onchange. I then want the function to check the image's properties (width, height, filesize). In WinIE,...
1
by: Roberto Castro | last post by:
I have some problems with the way I am showing the BLOB fields in the Image web controls. It does work on my localhost though sometimes I need to hit Refresh for the images to load properly....
0
by: Tony Lugg | last post by:
I have an application with a document management form. When users add documents to the form, I call the API function SHGetFileInfo to get the associated large and small icons for the file. These...
3
by: Tony Lugg | last post by:
I have an application with a document management form. When users add documents to the form, I call the API function SHGetFileInfo to get the associated large and small icons for the file. These...
3
by: Steve Tooke | last post by:
I'm trying to find a way to quickly read image headers (specifically jpgs at the moment) with out loading the whole image as an System.Imaging.Image. Anybody point me in the right direction or am I...
4
by: Bruce | last post by:
I have an asp.net page that is dynamically building a table and populating cells with images (typically jpeg) and with associated metadata. How can the asp.net code efficiently determine the...
14
by: Steve K. | last post by:
I have a method that I use to get a System.Drawing.Image from a file without keeping a handle on the file open (so I can delete the file). Here is the code: <code> public static Image...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.