Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10046)

Issue 95930044: code review 95930044: go.image/tiff: Support missing Compression tag

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 12 months ago by pfr
Modified:
9 years, 11 months ago
Reviewers:
nigeltao, bsiegert
CC:
bsiegert, nigeltao, golang-codereviews
Visibility:
Public.

Description

go.image/tiff: Support missing Compression tag no_compress.tiff is no_rps.tiff that was read in by go.image/tiff and written out again (with a hack to avoid creating the Compression tag on the way out). $ tiffdump no_compress.tiff no_compress.tiff: Magic: 0x4949 <little-endian> Version: 0x2a Directory 0: offset 968 (0x3c8) next 0 (0) ImageWidth (256) SHORT (3) 1<16> ImageLength (257) SHORT (3) 1<15> BitsPerSample (258) SHORT (3) 4<8 8 8 8> Photometric (262) SHORT (3) 1<2> StripOffsets (273) LONG (4) 1<8> SamplesPerPixel (277) SHORT (3) 1<4> RowsPerStrip (278) SHORT (3) 1<15> StripByteCounts (279) LONG (4) 1<960> XResolution (282) RATIONAL (5) 1<72> YResolution (283) RATIONAL (5) 1<72> ResolutionUnit (296) SHORT (3) 1<2> ExtraSamples (338) SHORT (3) 1<2>

Patch Set 1 #

Patch Set 2 : diff -r dc5d8934d75b https://code.google.com/p/go.image #

Patch Set 3 : diff -r dc5d8934d75b https://code.google.com/p/go.image #

Patch Set 4 : diff -r dc5d8934d75b https://code.google.com/p/go.image #

Patch Set 5 : diff -r dc5d8934d75b https://code.google.com/p/go.image #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
A testdata/no_compress.tiff View 1 Binary file 0 comments Download
M tiff/reader.go View 1 3 chunks +7 lines, -2 lines 0 comments Download
M tiff/reader_test.go View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8
pfr
Hello bsiegert@gmail.com, nigeltao@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.image
9 years, 12 months ago (2014-05-02 15:55:17 UTC) #1
bsiegert
LGTM Thanks for this. The tiff package was written according to the specification, so support ...
9 years, 12 months ago (2014-05-03 16:06:42 UTC) #2
pfr
On 2014/05/03 16:06:42, bsiegert wrote: > LGTM > > Thanks for this. The tiff package ...
9 years, 12 months ago (2014-05-05 17:31:58 UTC) #3
bsiegert
We need to wait for nigeltao. On lun. 5 mai 2014 um 7:31 PM, <pfr@google.com> ...
9 years, 12 months ago (2014-05-05 18:14:57 UTC) #4
nigeltao
Code looks fine. Any copyright issues with no_compress.tiff? Sorry if the answer's trivial, but codereview ...
9 years, 12 months ago (2014-05-06 13:46:10 UTC) #5
pfr
no_compress.tiff is no_rps.tiff that was read in by go.image/tiff and written out again (with a ...
9 years, 12 months ago (2014-05-06 16:33:05 UTC) #6
nigeltao
LGTM.
9 years, 12 months ago (2014-05-07 02:28:39 UTC) #7
nigeltao
9 years, 11 months ago (2014-05-12 06:42:05 UTC) #8
*** Submitted as
https://code.google.com/p/go/source/detail?r=d78170223cde&repo=image ***

go.image/tiff: Support missing Compression tag

no_compress.tiff is no_rps.tiff that was read in by go.image/tiff and written
out again (with a hack to avoid creating the Compression tag on the way out).

$ tiffdump no_compress.tiff
no_compress.tiff:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 968 (0x3c8) next 0 (0)
ImageWidth (256) SHORT (3) 1<16>
ImageLength (257) SHORT (3) 1<15>
BitsPerSample (258) SHORT (3) 4<8 8 8 8>
Photometric (262) SHORT (3) 1<2>
StripOffsets (273) LONG (4) 1<8>
SamplesPerPixel (277) SHORT (3) 1<4>
RowsPerStrip (278) SHORT (3) 1<15>
StripByteCounts (279) LONG (4) 1<960>
XResolution (282) RATIONAL (5) 1<72>
YResolution (283) RATIONAL (5) 1<72>
ResolutionUnit (296) SHORT (3) 1<2>
ExtraSamples (338) SHORT (3) 1<2>

LGTM=bsiegert, nigeltao
R=bsiegert, nigeltao
CC=golang-codereviews
https://codereview.appspot.com/95930044

Committer: Nigel Tao <nigeltao@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b