From 9232f18e099a700969b3bb9ce56e90eed0b2bb6f Mon Sep 17 00:00:00 2001 From: hitode909 Date: Fri, 26 Jul 2013 12:27:37 +0900 Subject: [PATCH] =?UTF-8?q?retina=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/dropbox_gyazo.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/dropbox_gyazo.rb b/bin/dropbox_gyazo.rb index 9970677..e318416 100755 --- a/bin/dropbox_gyazo.rb +++ b/bin/dropbox_gyazo.rb @@ -12,6 +12,9 @@ system "screencapture -i \"#{file}\"" if File.exist?(file) then system "sips -d profile --deleteColorManagementProperties \"#{file}\"" + system "mogrify -resize 50% \"#{file}\"" +else + exit end retries = 0