Skip to content

Instantly share code, notes, and snippets.

@deepakpk009
Created November 20, 2018 10:26
Show Gist options
  • Save deepakpk009/d99cb8d416b57d95c21a7b1bd2aa0001 to your computer and use it in GitHub Desktop.
Save deepakpk009/d99cb8d416b57d95c21a7b1bd2aa0001 to your computer and use it in GitHub Desktop.
Batch convert png images in a folder to jpg
open terminal and cd to the folder where the png files are present and enter the below command:
find -name '*.png' -print0 | xargs -0 -r mogrify -format jpg *.png
if mogrify is not present then install it using:
sudo apt-get install imagemagick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment