lib/prawn/images/jpg.rb in prawn-0.2.3 vs lib/prawn/images/jpg.rb in prawn-0.3.0

- old
+ new

@@ -12,10 +12,11 @@ module Images # A convenience class that wraps the logic for extracting the parts # of a PNG image that we need to embed them in a PDF class JPG attr_reader :width, :height, :bits, :channels - + attr_accessor :scaled_width, :scaled_height + JPEG_SOF_BLOCKS = %W(\xc0 \xc1 \xc2 \xc3 \xc5 \xc6 \xc7 \xc9 \xca \xcb \xcd \xce \xcf) JPEG_APP_BLOCKS = %W(\xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee \xef) # Process a new JPG image #