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 and leMaik committed Oct 21, 2023
1 parent 3674dc4 commit ab82df2
Show file tree
Hide file tree
Showing 2 changed files with 293 additions and 195 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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 @@ -35,7 +35,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 ab82df2

Please sign in to comment.