summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidiland <apantiez@student.42.fr>2016-09-08 16:40:25 +0200
committerKurt Jung <kurt.w.jung@gmail.com>2016-09-08 10:40:25 -0400
commit93a9d1608a79dd7957cfe4c4a8270c2b82dca6bc (patch)
tree9b0dee6946c2f478e2c658669e4447c4e8e3ceb3
parent157aff3575e05946317098493519bb770b328972 (diff)
Adding support CMYK in parsejpg (#81)
* adding support CMYK in jpg parseur * adding support CMYK in parsejpg * clear code debug * Clear code * Clear code
-rw-r--r--fpdf.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index 07005df..66cff72 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2872,6 +2872,8 @@ func (f *Fpdf) parsejpg(r io.Reader) (info *ImageInfoType) {
info.cs = "DeviceGray"
case color.YCbCrModel:
info.cs = "DeviceRGB"
+ case color.CMYKModel:
+ info.cs = "DeviceCMYK"
default:
f.err = fmt.Errorf("image JPEG buffer has unsupported color space (%v)", config.ColorModel)
return