diff --git a/lib/paperclip-meta/attachment.rb b/lib/paperclip-meta/attachment.rb index 6bc9705..a3f134a 100644 --- a/lib/paperclip-meta/attachment.rb +++ b/lib/paperclip-meta/attachment.rb @@ -33,7 +33,7 @@ def post_process_styles_with_meta_data(*style_args) @queued_for_write.each do |style, file| begin geo = Geometry.from_file file - meta[style] = {:width => geo.width.to_i, :height => geo.height.to_i, :size => File.size(file) } + meta[style] = {:width => geo.width.to_i, :height => geo.height.to_i, :size => file.size } rescue NotIdentifiedByImageMagickError => e meta[style] = {} end @@ -88,4 +88,4 @@ def meta_decode(meta) end end end -end \ No newline at end of file +end