473,414 Members | 1,609 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,414 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 2270
"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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.