# HDR extension in rad, trad

**URL:** <https://discourse.radiance-online.org/t/hdr-extension-in-rad-trad/1084>\
**Category:** radiance-dev\
**Created:** [October 25, 2008, 6:22pm UTC](https://discourse.radiance-online.org/t/hdr-extension-in-rad-trad/1084 "2008-10-25T18:22:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [October 25, 2008, 6:22pm UTC](https://discourse.radiance-online.org/t/hdr-extension-in-rad-trad/1084/1 "2008-10-25T18:22:17Z")

</div>

That's a great idea -- there may be a MIME type for HDR files already, so be sure not to step on any toes. Thanks for volunteering, Randolph, as I wouldn't know how to go about it.

Cheers,  
-Greg

> **···**
>
> > From: "Axel Jacobs" \<jacobs.axel@gmail.com\>  
> > Date: October 25, 2008 11:09:21 AM PDT
> > 
> > > I agree. There are too many apps which already use "pic", and it's  
> > > confusing besides; there's more information in an HDR map than there  
> > > is in a conventional image file. Perhaps we could also register a MIME  
> > > type for hdr files? Or has that already been done? I'm willing to  
> > > undertake the work on that, if people want and if it hasn't been done  
> > > yet.
> > 
> > Brilliant!
> > 
> > I've looked into this, but are are not sufficiently confident with HDR  
> > file format.
> > 
> > Let's move this thread over to dev and continue there.
> > 
> > Axel

---

<div class="post-metadata">

**Author:** ![Axel\_Jacobs2](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/a/46a35a/32.png) [@Axel\_Jacobs2](https://discourse.radiance-online.org/u/Axel_Jacobs2)\
**Post date:** [October 25, 2008, 2:20pm UTC](https://discourse.radiance-online.org/t/hdr-extension-in-rad-trad/1084/2 "2008-10-25T14:20:09Z")

</div>

Dear Greg,

I'm just updating my tutorial, and decided to be be more consistent  
with directories and file extensions. I personally still use trad a  
lot--it's convenient, fast, and doesn't get in the way.

trad still puts the old .pic extension on image files. The general  
consensus nowadays seems to be to use .hdr. Since it's a quick  
find-and-replace jobbie, may I propose to use this convention for rad  
and trad as well. I'd be happy to send you patch.

Regards

Axel

---

<div class="post-metadata">

**Author:** ![Rob\_Guglielmetti2](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/rob_guglielmetti2/32/468_2.png) [@Rob\_Guglielmetti2](https://discourse.radiance-online.org/u/Rob_Guglielmetti2)\
**Post date:** [October 25, 2008, 2:43pm UTC](https://discourse.radiance-online.org/t/hdr-extension-in-rad-trad/1084/3 "2008-10-25T14:43:24Z")

</div>

I rather like (and have become accustomed to, and have built scripts around) the .pic extension referring to a raw Radiance-generated image. I dunno how everyone else feels, but with all the available sources for hdr images, some of which we can call "hdr" images, I'd rather keep our good old .pic extension as a Radiance community standard.

> **···**
>
> On Oct 25, 2008, at 8:20 AM, Axel Jacobs wrote:
> 
> > trad still puts the old .pic extension on image files. The general  
> > consensus nowadays seems to be to use .hdr. Since it's a quick  
> > find-and-replace jobbie, may I propose to use this convention for rad  
> > and trad as well. I'd be happy to send you patch.

---

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [October 25, 2008, 5:10pm UTC](https://discourse.radiance-online.org/t/hdr-extension-in-rad-trad/1084/4 "2008-10-25T17:10:36Z")

</div>

All suffixes in Radiance are just a convention, but since both Windows and Mac OS X look at the suffix as a first indication of file type, it's not a bad idea to standardize them. The "hdr" suffix has definitely been picked up by the mainstream as a Radiance image file, while the "pic" suffix gets confused for other types on the different systems. In this respect, I agree with Axel that it would be beneficial to change this convention, if people are OK with that.

Although I can see Rob's point that it's nice to have a suffix that uniquely identifies a Radiance-generated image from other possible sources, the de facto use of extensions does not support this these days. An extension indicates the file type, not its creator.

If anyone else has a good reason why we should not switch to using ".hdr" in place of ".pic" in rad/trad/etc. in the next release, now is the time to speak up.

-Greg

> **···**
>
> > From: Rob Guglielmetti \<rpg@rumblestrip.org\>  
> > Date: October 25, 2008 7:43:24 AM PDT
> > 
> > On Oct 25, 2008, at 8:20 AM, Axel Jacobs wrote:
> > 
> > > trad still puts the old .pic extension on image files. The general  
> > > consensus nowadays seems to be to use .hdr. Since it's a quick  
> > > find-and-replace jobbie, may I propose to use this convention for rad  
> > > and trad as well. I'd be happy to send you patch.
> > 
> > I rather like (and have become accustomed to, and have built scripts around) the .pic extension referring to a raw Radiance-generated image. I dunno how everyone else feels, but with all the available sources for hdr images, some of which we can call "hdr" images, I'd rather keep our good old .pic extension as a Radiance community standard.

---

<div class="post-metadata">

**Author:** ![R\_Fritz2](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@R\_Fritz2](https://discourse.radiance-online.org/u/R_Fritz2)\
**Post date:** [October 25, 2008, 5:58pm UTC](https://discourse.radiance-online.org/t/hdr-extension-in-rad-trad/1084/5 "2008-10-25T17:58:51Z")

</div>

I agree. There are too many apps which already use "pic", and it's confusing besides; there's more information in an HDR map than there is in a conventional image file. Perhaps we could also register a MIME type for hdr files? Or has that already been done? I'm willing to undertake the work on that, if people want and if it hasn't been done yet.

Randolph

> **···**
>
> On Oct 25, 2008, at 10:10 AM, Greg Ward wrote:
> 
> > All suffixes in Radiance are just a convention, but since both Windows and Mac OS X look at the suffix as a first indication of file type, it's not a bad idea to standardize them. The "hdr" suffix has definitely been picked up by the mainstream as a Radiance image file, while the "pic" suffix gets confused for other types on the different systems. In this respect, I agree with Axel that it would be beneficial to change this convention, if people are OK with that.
> > 
> > Although I can see Rob's point that it's nice to have a suffix that uniquely identifies a Radiance-generated image from other possible sources, the de facto use of extensions does not support this these days. An extension indicates the file type, not its creator.
> > 
> > If anyone else has a good reason why we should not switch to using ".hdr" in place of ".pic" in rad/trad/etc. in the next release, now is the time to speak up.
> > 
> > -Greg
> > 
> > > From: Rob Guglielmetti \<rpg@rumblestrip.org\>  
> > > Date: October 25, 2008 7:43:24 AM PDT
> > > 
> > > On Oct 25, 2008, at 8:20 AM, Axel Jacobs wrote:
> > > 
> > > > trad still puts the old .pic extension on image files. The general  
> > > > consensus nowadays seems to be to use .hdr. Since it's a quick  
> > > > find-and-replace jobbie, may I propose to use this convention for rad  
> > > > and trad as well. I'd be happy to send you patch.
> > > 
> > > I rather like (and have become accustomed to, and have built scripts around) the .pic extension referring to a raw Radiance-generated image. I dunno how everyone else feels, but with all the available sources for hdr images, some of which we can call "hdr" images, I'd rather keep our good old .pic extension as a Radiance community standard.
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Radiance-general mailing list  
> > Radiance-general@radiance-online.org  
> > [http://www.radiance-online.org/mailman/listinfo/radiance-general](http://www.radiance-online.org/mailman/listinfo/radiance-general)

---

<div class="post-metadata">

**Author:** ![Axel\_Jacobs2](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/a/46a35a/32.png) [@Axel\_Jacobs2](https://discourse.radiance-online.org/u/Axel_Jacobs2)\
**Post date:** [October 25, 2008, 6:09pm UTC](https://discourse.radiance-online.org/t/hdr-extension-in-rad-trad/1084/6 "2008-10-25T18:09:21Z")

</div>

> I agree. There are too many apps which already use "pic", and it's  
> confusing besides; there's more information in an HDR map than there  
> is in a conventional image file. Perhaps we could also register a MIME  
> type for hdr files? Or has that already been done? I'm willing to  
> undertake the work on that, if people want and if it hasn't been done  
> yet.

Brilliant!

I've looked into this, but are are not sufficiently confident with HDR  
file format.

Let's move this thread over to dev and continue there.

Axel
