dergachev / dropbox-screenshots Goto Github PK
View Code? Open in Web Editor NEWImproved automatic Dropbox upload of screenshots on OSX
Improved automatic Dropbox upload of screenshots on OSX
After updating, large screenshots have reduced resolution. For now, I made this edit to remove the resizing:
@@ -23,7 +23,7 @@ if screen_width && screen_width.to_i > 2000
image_width = `sips -g pixelWidth "#{file_path}" | cut -s -d ':' -f 2 | cut -c 2-`
if image_width && image_width.to_i > 500 # ignore tiny images
$stderr.puts "Resizing #{file_path} to new width #{image_width.to_i/2}"
- `sips --resampleWidth "#{image_width.to_i / 2}" "#{file_path}" --out "#{file_path}"`
+ `sips --resampleWidth "#{image_width.to_i}" "#{file_path}" --out "#{file_path}"`
end
end
Hello!
Tried to get this working on my Mac running OSX in swedish but it seems it doesn't pick up the correct file as it says "Skärmavbildning" in the beginning of the file, rather than Screenshot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.