Skip to content

Commit 458034b

Browse files
committed
Fix typos
Found via `codespell -S tests -L padd,bu,paeth,writen,readed,extrems,dividor`
1 parent 54ea2e8 commit 458034b

18 files changed

Lines changed: 37 additions & 37 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Status
111111
- 8 and 16 bits
112112
- CMYK, YCbCr, RGB, RGBA, Greyscale
113113
- Uncompressed
114-
* Metadata: reading DpiX, DpiY and EXIF informations.
114+
* Metadata: reading DpiX, DpiY and EXIF information.
115115

116116
_I love juicy pixels_
117117

changelog

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ v3.2.9.4 January 2018
9898
v3.2.9.3 December 2017
9999
----------------------
100100

101-
* Fix: remove bad invisible unicde char
101+
* Fix: remove bad invisible unicode char
102102

103103
v3.2.9.2 December 2017
104104
----------------------
@@ -175,7 +175,7 @@ v3.2.6.3 November 2015
175175

176176
v3.2.6.2 November 2015
177177
----------------------
178-
* Fix: Using minimal GIF version if outputing a single image.
178+
* Fix: Using minimal GIF version if outputting a single image.
179179

180180
v3.2.6.1 August 2015
181181
--------------------
@@ -197,7 +197,7 @@ V3.2.5.3 July 2015
197197
V3.2.5.2 June 2015
198198
------------------
199199

200-
* Adding: Width & Height metdata to help querying image information
200+
* Adding: Width & Height metadata to help querying image information
201201
without decompressing the whole.
202202
* Adding: Source format metadata.
203203

@@ -263,7 +263,7 @@ v3.2 December 2014
263263
v3.1.7.1 August 2014
264264
--------------------
265265

266-
* Previous gif fix was not working withing the readImage
266+
* Previous gif fix was not working within the readImage
267267
function, only in specialized gif images. Correcting
268268
miscorection
269269

@@ -287,7 +287,7 @@ v3.1.6 August 2014
287287

288288
* Fix bad disposal handling in GIF animations.
289289
* Added ColorConvertible instance for PixelRGB8 -> PixelRGBA16 (KaiHa)
290-
* Fixing a bad handling of tRNS causing bad transprency decoding in
290+
* Fixing a bad handling of tRNS causing bad transparency decoding in
291291
some circonstances.
292292
* Adding the concept of Packeable pixel for faster pixel filling
293293
using mutable array.
@@ -379,9 +379,9 @@ v3.1.1.1 October 2013
379379
v3.1.1 October 2013
380380
--------------------
381381

382-
* Adding uncompresed TIFF saving.
382+
* Adding uncompressed TIFF saving.
383383
* Adding error message to avoid loading progressive loading.
384-
* Made MMAP optional, controled by a cabal flag.
384+
* Made MMAP optional, controlled by a cabal flag.
385385
* adding dynamicPixelMap helper function.
386386
* Handling png transparency using color key (#26).
387387

src/Codec/Picture/BitWriter.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ setDecodedString str = case B.uncons str of
9292
Nothing -> S.put $ BoolState 0 0 B.empty
9393
Just (v, rest) -> S.put $ BoolState 0 v rest
9494

95-
-- | Drop all bit until the bit of indice 0, usefull to parse restart
95+
-- | Drop all bit until the bit of indice 0, useful to parse restart
9696
-- marker, as they are byte aligned, but Huffman might not.
9797
byteAlignJpg :: BoolReader s ()
9898
byteAlignJpg = do

src/Codec/Picture/ColorQuant.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import Codec.Picture.Gif (GifFrame(..), GifDisposalMethod, GifDelay)
4141

4242
-- | Define which palette creation method is used.
4343
data PaletteCreationMethod =
44-
-- | MedianMeanCut method, provide the best results (visualy)
44+
-- | MedianMeanCut method, provide the best results (visually)
4545
-- at the cost of increased calculations.
4646
MedianMeanCut
4747
-- | Very fast algorithm (one pass), doesn't provide good
@@ -282,7 +282,7 @@ intLength = Fold (\n _ -> n + 1) 0 id
282282
-- We use the product of volume and population to determine the next cluster
283283
-- to split and determine the placement of each color by compating it to the
284284
-- mean of the parent cluster. So median cut is a bit of a misnomer, since one
285-
-- of the modifiations is to use the mean.
285+
-- of the modifications is to use the mean.
286286

287287
mkPaletteVec :: [Cluster] -> Vector PixelRGB8
288288
mkPaletteVec = V.fromList . map (toRGB8 . meanColor)

src/Codec/Picture/ConvGraph.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- $graph
22
--
3-
-- The following graph describe the differents way to convert between pixel types,
3+
-- The following graph describe the different way to convert between pixel types,
44
--
55
-- * Nodes describe pixel type
66
--

src/Codec/Picture/Gif.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ data GifLooping =
8383
LoopingNever
8484
-- | The animation will restart once the end is reached
8585
| LoopingForever
86-
-- | The animation will repeat n times before stoping
86+
-- | The animation will repeat n times before stopping
8787
| LoopingRepeat Word16
8888

8989

src/Codec/Picture/HDR.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import Codec.Picture.VectorByteConversion
5151
#if MIN_VERSION_transformers(0, 4, 0)
5252
import Control.Monad.Trans.Except( ExceptT, throwE, runExceptT )
5353
#else
54-
-- Transfomers 0.3 compat
54+
-- Transformers 0.3 compat
5555
import Control.Monad.Trans.Error( Error, ErrorT, throwError, runErrorT )
5656

5757
type ExceptT = ErrorT
@@ -179,7 +179,7 @@ decodeInfos = do
179179
decodeHDR :: B.ByteString -> Either String DynamicImage
180180
decodeHDR = fmap fst . decodeHDRWithMetadata
181181

182-
-- | Equivalent to decodeHDR but with aditional metadatas.
182+
-- | Equivalent to decodeHDR but with additional metadatas.
183183
decodeHDRWithMetadata :: B.ByteString -> Either String (DynamicImage, Metadatas)
184184
decodeHDRWithMetadata str = runST $ runExceptT $
185185
case runGet decodeHeader $ L.fromChunks [str] of

src/Codec/Picture/Jpg.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ prepareHuffmanTable classVal dest tableDef =
740740
}, VS.singleton 0)
741741
where sizes = VU.fromListN 16 $ map (fromIntegral . length) tableDef
742742

743-
-- | Encode an image in jpeg at a reasonnable quality level.
743+
-- | Encode an image in jpeg at a reasonable quality level.
744744
-- If you want better quality or reduced file size, you should
745745
-- use `encodeJpegAtQuality`
746746
encodeJpeg :: Image PixelYCbCr8 -> L.ByteString
@@ -780,7 +780,7 @@ encodeJpegAtQuality quality = encodeJpegAtQualityWithMetadata quality mempty
780780

781781
-- | Record gathering all information to encode a component
782782
-- from the source image. Previously was a huge tuple
783-
-- burried in the code
783+
-- buried in the code
784784
data EncoderState = EncoderState
785785
{ _encComponentIndex :: !Int
786786
, _encBlockWidth :: !Int

src/Codec/Picture/Jpg/Internal/DefaultTable.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ makeInverseTable t = V.replicate 255 (0,0) V.// inner 0 0 t
9999
where shifted = code `unsafeShiftL` 1
100100

101101
-- | Represent a compact array of 8 * 8 values. The size
102-
-- is not guarenteed by type system, but if makeMacroBlock is
102+
-- is not guaranteed by type system, but if makeMacroBlock is
103103
-- used, everything should be fine size-wise
104104
type MacroBlock a = SV.Vector a
105105

src/Codec/Picture/Metadata.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ instance NFData SourceFormat where
8080
rnf a = a `seq` ()
8181

8282
-- | The same color values may result in slightly different colors on different
83-
-- devices. To get consistent colors accross multiple devices we need a way of
83+
-- devices. To get consistent colors across multiple devices we need a way of
8484
-- mapping color values from a source device into their equivalents on the
8585
-- target device.
8686
--
@@ -129,7 +129,7 @@ instance NFData ColorSpace where
129129
-- * 'ColorProfile' An unparsed ICC color profile. Currently only supported by
130130
-- the Bitmap format.
131131
--
132-
-- * 'Unknown' unlikely to be decoded, but usefull for metadata writing
132+
-- * 'Unknown' unlikely to be decoded, but useful for metadata writing
133133
--
134134
-- * 'Exif' Exif tag and associated data.
135135
--

0 commit comments

Comments
 (0)