Skip to content

Instantly share code, notes, and snippets.

@mkrupczak3
Last active October 2, 2020 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkrupczak3/756059000e3598a702361485ae68778d to your computer and use it in GitHub Desktop.
Save mkrupczak3/756059000e3598a702361485ae68778d to your computer and use it in GitHub Desktop.
Batch convert Steam uncompressed PNG videogame screenshots to high-quality low compression JPG for use with twitter
# Batch convert Steam uncompressed PNG videogame screenshots to high-quality low compression JPG for use with twitter:
find . -type f -iname '*.png' -print0 | xargs -0 -n 1 -P 4 -I {} convert -verbose -units PixelsPerInch {} -colorspace sRGB -resize 3440x1440 -set filename:new '%t-%wx%h' -density 72 -format JPG -quality 97 '%[filename:new].jpg'
@mkrupczak3
Copy link
Author

mkrupczak3 commented Sep 25, 2020

Change .png to .ARW if you wish to convert a bunch of photos from a fancy DSLR camera in raw mode to high-quality JPG's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment