This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mogrify -sampling-factor 4:2:0 -strip -gaussian-blur 0.05 -resize 800x800 -quality 80 -interlace JPEG -colorspace sRGB -path ../new-thumbs *.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A large number to be used as infinite | |
var inf = 10000; | |
// The number of segments in which a continuous random variable is divided | |
// to get an aproximation in the discrete | |
var nSegments = 10; | |
// U ~ Uniform(0, 1) | |
function u() { | |
return Math.random(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These shell scripts automatically generate PNG icons and splash screens (launch images) at different sizes and resolutions given a default icon and splash screen in Inkscape SVG format. | |
PREREQUISITES | |
Make sure that you have Inkscape installed. Running the following command you should see the path to the executable: | |
> which inkscape | |
/usr/bin/inkscape | |
CONFIGURATION | |
You can specify the input icon and splash screen (and some other options) in the configuration at the top of each shell script. |