Skip to content

Commit

Permalink
Fix TIFF format export (#1649)
Browse files Browse the repository at this point in the history
- make it easier to extend TIFF format in the future
- add lots of documentation
- add the Chunky version to software metadata
- add date/timestamp to metadata
  • Loading branch information
Maximilian Stiede authored Oct 21, 2023
1 parent aaff8d2 commit 3cced1a
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 197 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import se.llbit.util.TaskTracker;

/**
* TIFF with 32-bit color channels.
* TIFF with 32-bit floating point RGB channels.
*/
public class Tiff32ExportFormat implements PictureExportFormat {

Expand Down Expand Up @@ -52,7 +52,7 @@ public boolean isTransparencySupported() {
public void write(OutputStream out, Scene scene, TaskTracker taskTracker) throws IOException {
try (TaskTracker.Task task = taskTracker.task("Writing TIFF");
TiffFileWriter writer = new TiffFileWriter(out)) {
writer.write32(scene, task);
writer.export(scene, task);
}
}
}
Loading

0 comments on commit 3cced1a

Please sign in to comment.