hsexif 0.6.0.5 → 0.6.0.6
raw patch · 2 files changed
+10/−5 lines, 2 filesdep ~HUnitPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: HUnit
API changes (from Hackage documentation)
- Graphics.HsExif: instance Eq ImageOrientation
- Graphics.HsExif: instance Eq RotationDirection
- Graphics.HsExif: instance Show IfEntry
- Graphics.HsExif: instance Show ImageOrientation
- Graphics.HsExif: instance Show RotationDirection
- Graphics.HsExif: prettyPrinter :: ExifTag -> ExifValue -> Text
- Graphics.HsExif: tagDesc :: ExifTag -> Maybe String
- Graphics.HsExif: tagKey :: ExifTag -> Word16
- Graphics.HsExif: tagLocation :: ExifTag -> TagLocation
+ Graphics.HsExif: [prettyPrinter] :: ExifTag -> ExifValue -> Text
+ Graphics.HsExif: [tagDesc] :: ExifTag -> Maybe String
+ Graphics.HsExif: [tagKey] :: ExifTag -> Word16
+ Graphics.HsExif: [tagLocation] :: ExifTag -> TagLocation
+ Graphics.HsExif: instance GHC.Classes.Eq Graphics.HsExif.ImageOrientation
+ Graphics.HsExif: instance GHC.Classes.Eq Graphics.HsExif.RotationDirection
+ Graphics.HsExif: instance GHC.Show.Show Graphics.HsExif.IfEntry
+ Graphics.HsExif: instance GHC.Show.Show Graphics.HsExif.ImageOrientation
+ Graphics.HsExif: instance GHC.Show.Show Graphics.HsExif.RotationDirection
Files
- Graphics/HsExif.hs +8/−3
- hsexif.cabal +2/−2
Graphics/HsExif.hs view
@@ -453,9 +453,14 @@ parseOffset byteAlign tiffHeaderStart handler entry = do let contentsInt = fromIntegral $ toInteger $ entryContents entry curPos <- fromIntegral <$> bytesRead- skip $ contentsInt + tiffHeaderStart - curPos- bytestring <- getLazyByteString (fromIntegral $ entryNoComponents entry * dataLength handler)- return $ parseInline byteAlign handler entry bytestring+ -- this skip can take me quite far and I can't skip+ -- back with binary. So do the skip with a lookAhead.+ -- see https://github.com/emmanueltouzery/hsexif/issues/9+ lookAhead $ do+ skip (contentsInt + tiffHeaderStart - curPos)+ let bsLength = entryNoComponents entry * dataLength handler+ bytestring <- getLazyByteString (fromIntegral bsLength)+ return (parseInline byteAlign handler entry bytestring) signedInt32ToInt :: Word32 -> Int signedInt32ToInt w = fromIntegral (fromIntegral w :: Int32)
hsexif.cabal view
@@ -1,5 +1,5 @@ name: hsexif-version: 0.6.0.5+version: 0.6.0.6 synopsis: EXIF handling library in pure Haskell description: The hsexif library provides functions for working with EXIF data contained in JPEG files. Currently it only supports reading the data.@@ -44,7 +44,7 @@ default-language: Haskell2010 build-depends: base, hspec,- HUnit >= 1.2 && <1.3,+ HUnit >= 1.2 && <1.4, binary >=0.7 && <0.8, bytestring >=0.10 && <0.11, containers >= 0.5 && <0.6,