Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
Blumed
/
social.sh
Last active
Jan 19, 2016
Star
0
Fork
0
Star
Code
Revisions
2
Embed
What would you like to do?
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone with Git or checkout with SVN using the repository’s web address.
Learn more about clone URLs
Download ZIP
Use gulp, and jekyll? me too. I made a handy an automated process for social post images.
Raw
social.sh
#!
/bin/bash
cd
src/assets/images/social/uncompressed
#
change directory to exicute script in uncompressed folder
mkdir .tmp
#
making temp derectory
cp
*
.tmp/
mogrify -format jpg -filter Triangle -define filter:support=2 -thumbnail 1200x630
!
-quality 100 -unsharp 0.25x0.08+8.3+0.045 -dither None -define jpeg:fancy-upsampling=off -interlace none -colorspace sRGB -path .tmp/ .tmp/
*
.
*
mv .tmp/
*
.jpg .tmp/../../og/
;
rm -R .tmp/
*
;
cp
*
.tmp/
mogrify -format jpg -filter Triangle -define filter:support=2 -thumbnail 1024x512
!
-quality 100 -unsharp 0.25x0.08+8.3+0.045 -dither None -define jpeg:fancy-upsampling=off -interlace none -colorspace sRGB -path .tmp/ .tmp/
*
.
*
mv .tmp/
*
.jpg .tmp/../../twitter/
;
rm -R .tmp/
*
;
rm -R .tmp
#
removes temp directory
Sign up for free
to join this conversation on GitHub
. Already have an account?
Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.