Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
4e70902f
Commit
4e70902f
authored
Dec 02, 2014
by
Luc Deschenaux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EyesisTiff: enable TIFF LZW lossless compression
parent
1dfca84a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
EyesisTiff.java
src/main/java/EyesisTiff.java
+3
-2
No files found.
src/main/java/EyesisTiff.java
View file @
4e70902f
...
...
@@ -47,6 +47,7 @@ import loci.formats.tiff.IFDList;
import
loci.formats.tiff.TiffParser
;
import
loci.formats.tiff.TiffRational
;
import
loci.formats.tiff.TiffSaver
;
import
com.sun.media.imageio.plugins.tiff.BaselineTIFFTagSet
;
public
class
EyesisTiff
{
// private static org.apache.log4j.Logger log= Logger.getLogger(EyesisTiff.class);
...
...
@@ -175,7 +176,7 @@ public EyesisTiff(){
ifd
.
putIFDValue
(
IFD
.
SOFTWARE
,
"Elphel Eyesis"
);
ifd
.
putIFDValue
(
IFD
.
IMAGE_DESCRIPTION
,
description
);
// copy some other data?
ifd
.
putIFDValue
(
IFD
.
COMPRESSION
,
1
);
//TiffCompression.UNCOMPRESSED
);
ifd
.
putIFDValue
(
IFD
.
COMPRESSION
,
BaselineTIFFTagSet
.
COMPRESSION_LZW
);
ifd
.
putIFDValue
(
IFD
.
PHOTOMETRIC_INTERPRETATION
,
2
);
// RGB
ifd
.
putIFDValue
(
IFD
.
EXTRA_SAMPLES
,
2
);
// 0 = Unspecified data 1 = Associated alpha data (with pre-multiplied color) 2 = Unassociated alpha data
// int [] bpsArray={8,8,8,8};
...
...
@@ -257,7 +258,7 @@ public EyesisTiff(){
ifd
.
putIFDValue
(
IFD
.
SOFTWARE
,
"Elphel Eyesis"
);
ifd
.
putIFDValue
(
IFD
.
IMAGE_DESCRIPTION
,
description
);
// copy some other data?
ifd
.
putIFDValue
(
IFD
.
COMPRESSION
,
1
);
//TiffCompression.UNCOMPRESSED
);
ifd
.
putIFDValue
(
IFD
.
COMPRESSION
,
BaselineTIFFTagSet
.
COMPRESSION_LZW
);
ifd
.
putIFDValue
(
IFD
.
PHOTOMETRIC_INTERPRETATION
,
2
);
// RGB
ifd
.
putIFDValue
(
IFD
.
EXTRA_SAMPLES
,
2
);
// extra bytes (over 3) meaning Unassociated alpha data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment