Retina Mac Book ProでGyazoキャプチャを正常サイズにする方法

https://gist.github.com/3349911

このやり方をやる前に、

brew tap homebrew/versions
brew install libpng12
brew install imagemagick

しておくと良い。


でね、上記gistのdiff行がなんか違うので

 18 # capture png file
 19 tmpfile = "/tmp/image_upload#{$$}.png"
 20 imagefile = ARGV[1]
 21 
 22 if imagefile && File.exist?(imagefile) then
 23   system "sips -s format png \"#{imagefile}\" --out \"#{tmpfile}\""
 24 else
 25   system "screencapture -i \"#{tmpfile}\""
 26   if File.exist?(tmpfile) then
 27     system "/usr/local/bin/mogrify -resize 50% -unsharp 1x1.2+0.2+0  \"#{tmpfile}\""     
 28     system "sips -d profile --deleteColorManagementProperties \"#{tmpfile}\""~~
 29   end
 30 end

おれはこんな感じにしたよ。27行目に追記しただけ。