Skip to content

Commit

Permalink
Fixed CalRGB -> RRB image conversion. (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilliams97 authored and gunnsth committed Jul 3, 2019
1 parent 9539b4e commit 3de3705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/colorspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ func (cs *PdfColorspaceCalRGB) ImageToRGB(img Image) (Image, error) {
maxVal := math.Pow(2, float64(img.BitsPerComponent)) - 1

var rgbSamples []uint32
for i := 0; i < len(samples)-2; i++ {
for i := 0; i < len(samples)-2; i += 3 {
// A, B, C in range 0.0 to 1.0
aVal := float64(samples[i]) / maxVal
bVal := float64(samples[i+1]) / maxVal
Expand Down

0 comments on commit 3de3705

Please sign in to comment.