lib/chunky_png/image.rb in chunky_png-1.0.1 vs lib/chunky_png/image.rb in chunky_png-1.1.0

- old
+ new

@@ -4,11 +4,11 @@ # also includes support for metadata. # # @see ChunkyPNG::Canvas class Image < Canvas - # The minimumsize of bytes the value of a metadata field should be before compression + # The minimum size of bytes the value of a metadata field should be before compression # is enabled for the chunk. METADATA_COMPRESSION_TRESHOLD = 300 # @return [Hash] The hash of metadata fields for this PNG image. attr_accessor :metadata @@ -62,10 +62,10 @@ ds = super(constraints) ds.other_chunks += metadata_chunks return ds end - # Reads a ChunkyPNG::Image intance from a data stream. + # Reads a ChunkyPNG::Image instance from a data stream. # # Besides decoding the canvas, this will also read the metadata fields # from the datastream. # # @param [ChunkyPNG::Datastream] The datastream to read from.