Skip to content

Instantly share code, notes, and snippets.

@dikaio
Last active July 3, 2023 04:46
Show Gist options
  • Save dikaio/9720c8a5f78366cba3472825e338fb77 to your computer and use it in GitHub Desktop.
Save dikaio/9720c8a5f78366cba3472825e338fb77 to your computer and use it in GitHub Desktop.
Simple one-line command to batch convert jpeg to jpg and keep the same filename.

Simple one-line command argument to batch convert images.

for file in *.jpeg; do filename="${file%.*}"; convert "$file" "${filename}.jpg"; done

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