lib/frameit/editor.rb in frameit-0.1.3 vs lib/frameit/editor.rb in frameit-0.1.4

- old
+ new

@@ -41,10 +41,12 @@ output_path = screenshot.gsub('.png', '_framed.png').gsub('.PNG', '_framed.png') result.write output_path Helper.log.info "Successfully framed screenshot at path '#{output_path}'".green end + rescue SystemExit, Interrupt => ex + raise ex # system interrupted exception (ctrl + C) rescue Exception => ex Helper.log.error ex end end end @@ -89,11 +91,11 @@ when size::IOS_47 return 'iPhone_6' when size::IOS_40 return 'iPhone_5s' when size::IOS_IPAD - return 'iPad_Air' + return 'iPad_mini' end end def orientation_name(path) size = FastImage.size(path) @@ -121,12 +123,12 @@ offset: "+54+197", width: 543 } when size::IOS_IPAD return { - offset: '+57+112', - width: 765 + offset: '+50+134', + width: 792 } end when Orientation::LANDSCAPE case screen_size(path) when size::IOS_55 @@ -144,11 +146,11 @@ offset: "+201+48", width: 970 } when size::IOS_IPAD return { - offset: '+113+57', - width: 1024 + offset: '+133+50', + width: 1058 } end end end end \ No newline at end of file