# Setting Render View To Save Images As Tiff

**URL:** https://forum.highend3d.com/t/setting-render-view-to-save-images-as-tiff/1357
**Category:** Maya
**Tags:** mel
**Created:** [August 19, 2008, 8:48pm UTC](https://forum.highend3d.com/t/setting-render-view-to-save-images-as-tiff/1357 "2008-08-19T20:48:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![igloo1967](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/i/7ba0ec/32.png) [@igloo1967](https://forum.highend3d.com/u/igloo1967)
#### Post date: [August 19, 2008, 8:48pm UTC](https://forum.highend3d.com/t/setting-render-view-to-save-images-as-tiff/1357/1 "2008-08-19T20:48:52Z")

</div>

Anybody has the answer to this?  
I create different renders that usually need to be approved by another person that can't open iff files. Then, I just save my render files are tiff from the Render View window.  
I've looked at the file imageFormats.mel but I have not made it worked.  
Thanks for any related information.  
igloo1967

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [August 20, 2008, 7:55pm UTC](https://forum.highend3d.com/t/setting-render-view-to-save-images-as-tiff/1357/2 "2008-08-20T19:55:11Z")

</div>

CODE  
// jooRenderVWriteImage save topmost image in render view   
// in specified format  
//  
// version history:  
//&nbsp;&nbsp;&nbsp;&nbsp;2001 first ver  
//&nbsp;&nbsp;&nbsp;&nbsp;2008 renamed to jooRenderVWriteImage   
//  
// usage example jooRenderVWriteImage "filename" "png"  
global proc jooRenderVWriteImage(string $filename, string $format){  
global string $imgExt[];  
global int $imgExtNum[];  
int $size=size($imgExt);  
int $i=0,$hi=0;  
if (gmatch($filename,"\*16")){  
 $format=match("...",$format);  
 $hi=1;  
}  
while ($i\<=$size){  
if ($imgExt[$i]==$format) break;  
$i++;  
}  
if ($i\>$size) error "no such format";

int $last=`getAttr defaultRenderGlobals.imageFormat`;  
setAttr defaultRenderGlobals.imageFormat ($imgExtNum[$i+$hi]);  
renderWindowEditor -edit -writeImage $filename renderView;  
setAttr defaultRenderGlobals.imageFormat $last;  
}

Was doing some housekeeping in my repository, and long neglected shelves.

---

<div class="post-metadata">

### Author: ![igloo1967](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/i/7ba0ec/32.png) [@igloo1967](https://forum.highend3d.com/u/igloo1967)
#### Post date: [August 28, 2008, 9:10pm UTC](https://forum.highend3d.com/t/setting-render-view-to-save-images-as-tiff/1357/3 "2008-08-28T21:10:17Z")

</div>

Thanks for the reply Joojaa ![]()  
I used your code and it works nicely.  
In the Render View window, in the file --\> save image , could the file type to be set as tif instead of the iff, or make the tif to be listed first? I'm still using this window to save the files.   
Thanks again,  
igloo1967
