[Radiance-dev] Radiane MIME types

Gregory J. Ward gregoryjward at gmail.com
Mon Nov 10 11:12:16 PST 2008


I apologize that I don't have time at the moment to look at this  
thoroughly.

I just checked in the switch from ".pic" to ".hdr" throughout the  
HEAD release of Radiance 4.0a.

The "#?RADIANCE" line at the beginning of the file is, as Axel notes,  
not a unique indicator of a RGBE or XYZE file.  For that, you really  
need to find the format string, and I think the notion of "magic  
numbers" fails in most specifications of a header that could be any  
size, with the important string buried in it somewhere.  I only added  
the "#?RADIANCE" line as an afterthought in fact to provide something  
basic for the Unix "file" command to work with.

-Greg

> From: "Axel Jacobs" <jacobs.axel at gmail.com>
> Date: November 7, 2008 3:25:42 PM PST
>
> Hi Randolph,
>
> thanks for chasing this up. My comments are below...
>
>
> Encoding considerations: Binary preferred.  This is a binary image
>   type with a text header; "binary" or "base64" are the only
>   reasonable choices.
>
> Applications that use this media type: Radiance, HDR Workshop,
>     Photoshop, TBD
>
> +++ pfstools
> more here: http://luxal.dachary.org/webhdr/software.shtml
> .hdr is listed as RGBE
>
> Additional information:
>      Magic number(s): Text "#?RADIANCE\n" (octet sequence 23 3f 52 41
>        44 49 41 4e 43 45 0a) at the beginning of the file
>      File extension(s): pic, hdr
>      Macintosh file type code(s): TBD



More information about the Radiance-dev mailing list