New addon: batch image converter

Tamir Lousky writes:

I recently had to convert a bunch of 32 bit TIF depth maps to 16 bit PNGs at work, while keeping the same file names expect for the new extension.

Normally I’d do this in Photoshop, but Photoshop doesn’t allow you to save 32 bit TIFs as PNGs, it only converts it to HDR, PSD, PSB, RAW, EXR or PBM.

Which program does allow you to do that? Blender of course. You can load TIFs in several ways and render or save them to any of the supported formats in Blender, which includes the 16bit PNGs I wanted.

I loaded the TIFs to the video sequence editor and rendered the frames as PNGs. While that worked, all the new files had frame numbers for names.

So I decided to write an addon that does a similar thing (via the compositor instead of the VSE), only it saves the converted files with the same name as the original.

For a detailed installation and usage guide (which really isn’t all that required for such a simple addon), watch the video below.

Advertisement