Skip to content

Instantly share code, notes, and snippets.

View julesjans's full-sized avatar

Jules Jans julesjans

View GitHub Profile
@julesjans
julesjans / date-images.sh
Created November 17, 2016 10:45
Renames images according to their date
#!/bin/bash
#
# Image renaming script, requires exiftool
for f in "${1%/}"/*.{jpg,jpeg}
do
if [ -f "$f" ]
then
echo "Preparing $f"
filename=$(basename "$f")
@julesjans
julesjans / date-images.sh
Created November 17, 2016 10:45
Renames images according to their date
#!/bin/bash
#
# Image renaming script, requires exiftool
for f in "${1%/}"/*.{jpg,jpeg}
do
if [ -f "$f" ]
then
echo "Preparing $f"
filename=$(basename "$f")
@julesjans
julesjans / web-video-converter.sh
Last active October 12, 2016 21:24
Converts video (mp4/m4v) into web mp4 & ogv, requires ffmpeg & exiftool
#!/bin/sh
# VIDEO Conversion Tool
# Takes a source directory, and converts for the web into an output directory
# Arguments: src, dest
# Set the title of the source file
# for f in "${1%/}"/*.{mp4,m4v}
# do
# filename=$(basename "$f")
@julesjans
julesjans / apple-app-icons.sh
Last active October 19, 2016 09:58
Takes an icon PNG as an argument, uses sips (macOS) or convert (ImageMagick), makes a lot of icons!
#!/bin/bash
# Takes an icon PNG as an argument, uses sips (macOS) or convert (ImageMagick), makes a lot of icons!
input_file=$1
sizes=(20 29 40 50 57 60 72 76 83.5 512)
scales=(1 2 3)
for size in "${sizes[@]}"
do
for scale in "${scales[@]}"