Skip to content
Snippets Groups Projects
Verified Commit 1bc7246b authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Add debugging info for image color profiles

parent 34101566
Branches
No related tags found
No related merge requests found
...@@ -78,6 +78,10 @@ func resize(wand *imagick.MagickWand, wandLinear *imagick.MagickWand, originalCo ...@@ -78,6 +78,10 @@ func resize(wand *imagick.MagickWand, wandLinear *imagick.MagickWand, originalCo
if err != nil { if err != nil {
return err return err
} }
for key, value := range profiles {
println(key)
mw.ProfileImage(key, []byte(value))
}
} }
} }
...@@ -90,9 +94,6 @@ func resize(wand *imagick.MagickWand, wandLinear *imagick.MagickWand, originalCo ...@@ -90,9 +94,6 @@ func resize(wand *imagick.MagickWand, wandLinear *imagick.MagickWand, originalCo
} }
mw.StripImage() mw.StripImage()
for key, value := range profiles {
mw.SetImageProfile(key, []byte(value))
}
err = mw.WriteImage(target) err = mw.WriteImage(target)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment