lib/hexapdf/image_loader/jpeg.rb in hexapdf-0.32.2 vs lib/hexapdf/image_loader/jpeg.rb in hexapdf-0.33.0
- old
+ new
@@ -39,11 +39,11 @@
module HexaPDF
module ImageLoader
# This module is used for loading images in the JPEG format from files or IO streams.
#
- # See: PDF1.7 s7.4.8, ITU T.81 Annex B, ITU T.872
+ # See: PDF2.0 s7.4.8, ITU T.81 Annex B, ITU T.872
module JPEG
# The magic marker that tells us if the file/IO contains an image in JPEG format.
MAGIC_FILE_MARKER = "\xFF\xD8\xFF".b
@@ -137,10 +137,10 @@
# short-cut loop if we have all needed information
break if components != 4 || invert_colors
end
- # PDF1.7 s8.9.5.1
+ # PDF2.0 s8.9.5.1
if bits != 8
raise HexaPDF::Error, "Unsupported number of bits per component: #{bits}"
end
color_space = case components