Page MenuHome

Add compression modes for TIFF images
ClosedPublic

Authored by Quentin Wenger (Matpi) on Jan 5 2016, 8:26 PM.

Details

Summary

This patch aims at providing multiple compression modes for TIFF output, particularly uncompressed mode. ATM have None, Deflate, LZW and Pack Bits modes been integrated, mimicking The GIMP export modes (except JPEG mode, which returned encoding errors).
More modes could be added if needed.
Default remains Deflate.

Diff Detail

Repository
rB Blender

Event Timeline

Quentin Wenger (Matpi) retitled this revision from to Add compression modes for TIFF images.
Quentin Wenger (Matpi) updated this object.
  • Revert unnecessary braces addition.
Sergey Sharybin (sergey) requested changes to this revision.Jan 13 2016, 9:38 AM
Sergey Sharybin (sergey) edited edge metadata.

im_format.tiff_flag of the newly added scenes is not initialized.

source/blender/makesdna/DNA_scene_types.h
449

Use anonymous enum instead.

This revision now requires changes to proceed.Jan 13 2016, 9:38 AM
Quentin Wenger (Matpi) edited edge metadata.

Reflect @Sergey Sharybin (sergey) requests:

  • convert tiff_flag values to enum;
  • set tiff_flag value at Scene init;

I also added tiff_flag initialization for BakeData.im_format (in versioning & scene_init), hope that's correct?

minor note - *picky naming*

source/blender/imbuf/IMB_imbuf_types.h
131–134

would rather COMPRESS, without abbreviation. (same with var names)

This revision was automatically updated to reflect the committed changes.

Made final touches and committed to git now. Thanks!