lib/frameit/editor.rb in frameit-2.0.0 vs lib/frameit/editor.rb in frameit-2.0.1

- old
+ new

@@ -94,11 +94,11 @@ # Decrease the size of the framed screenshot to fit into the defined padding + background frame_width = background.width - fetch_config['padding'] * 2 image.resize "#{frame_width}x" end - @@image = put_device_into_background(background) + @image = put_device_into_background(background) if fetch_config['title'] @image = add_title end @@ -162,10 +162,10 @@ end image end def actual_font_size - (screenshot.size[0] / 20.0).round # depends on the width of the screenshot + [top_space_above_device / 3.0, @image.width / 30.0].max.round end def keyword_padding (actual_font_size / 2.0).round end \ No newline at end of file