packages feed

webp 0.1.0.2 → 0.1.0.3

raw patch · 3 files changed

+6/−2 lines, 3 files

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # webp +## 0.1.0.3++  * Fix flipped width/height+ ## 0.1.0.1    * Add `cross` flag to work around Cabal cross-compilation bug
src/Codec/Picture/WebP.hs view
@@ -83,7 +83,7 @@             -> BS.ByteString             -> (CInt, CInt, BS.ByteString) decodeAbsBS decoder pxFactor bs = unsafePerformIO $ BS.unsafeUseAsCStringLen bs $ \(p, l) -> do-    (res, h, w) <- decoder p (fromIntegral l)+    (res, w, h) <- decoder p (fromIntegral l)     let sz = pxFactor * w * h -- bytes     img <- BS.PS <$> newForeignPtr webPFree (castPtr res) <*> pure 0 <*> pure (fromIntegral sz)     pure (w, h, img)
webp.cabal view
@@ -1,6 +1,6 @@ cabal-version:      1.18 name:               webp-version:            0.1.0.2+version:            0.1.0.3 license:            GPL-3 license-file:       LICENSE copyright:          Copyright: (c) 2020 Vanessa McHale