~alcinnz/Mondrian

7e76e9b602f200654a046b7c8c64e37d1309f62f — Adrian Cochrane 10 months ago 4fb3976
Test whether colour conversion is giving me the issues on certain JPGs, nope!
2 files changed, 6 insertions(+), 1 deletions(-)

M Mondrian.cabal
M lib/Graphics/Rendering/Rect/Image.hs
M Mondrian.cabal => Mondrian.cabal +6 -0
@@ 42,6 42,12 @@ executable Mondrian
  hs-source-dirs:      app
  default-language:    Haskell2010

executable Convert
  main-is:              Convert.hs
  build-depends:        base >= 4.13 && <4.14, JuicyPixels
  hs-source-dirs:       app
  default-language:     Haskell2010

test-suite Mondrian-test
  default-language:    Haskell2010
  type:                exitcode-stdio-1.0

M lib/Graphics/Rendering/Rect/Image.hs => lib/Graphics/Rendering/Rect/Image.hs +0 -1
@@ 61,7 61,6 @@ nilTexture = Texture 0 (0, 0)
atlasLookup :: Text -> Atlas -> Texture
atlasLookup key = fromMaybe nilTexture . HM.lookup key . unAtlas

-- OpenGL deals in CrCb not CbCr...
-- Convert pixels to some flavour of RGBA
convertDyn :: DynamicImage -> DynamicImage
convertDyn (ImageY8 img) = ImageRGBA8 $ promoteImage img