openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Adding/updating attribute to existing OpenEXR file


From: Ken McGaugh
Subject: Re: [Openexr-devel] Adding/updating attribute to existing OpenEXR file
Date: Tue, 26 Aug 2008 15:46:05 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

The exrstdattr tool that comes with openexr does a similar thing, so you could look at how it is done there. In short it does the following:

  InputFile in (inFileName);
  Header header = in.header();
  // insert additional attributes to header here
  OutputFile out (outFileName, header);
  out.copyPixels(in);

--Ken

Nicholas Yue wrote:
Hi,

I am writing a tool to add custom attributes a collection of existing OpenEXR files.

Looking at the API, I have found methods to retrieve the headers from the ImfRgbaFile object but they are const.

What are the best practice way of updating/adding attributes to existing OpenEXR files?

Regards






reply via email to

[Prev in Thread] Current Thread [Next in Thread]