Skip to navigation

Gustavo Saiani

Gustavo Saiani

Software, finance, books, painting, psychology, cycling

  • Home
  • Return to Content

March 30, 2016

Resizing images by percentage, in batch, from the command line

In Mac OS.

Imagemagick does the trick. I use homebrew, so:

brew install imagemagick

To resize all images in a given folder to 50%:

for f in *; do convert $f -resize 50% $f; done

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

  • Software
  • Comments Off on Resizing images by percentage, in batch, from the command line
  • gusaiani

Post navigation

Replacing spaces for underscores in batches of files
Colemak in iOS Simulator

Recent Posts

  • (no title)
  • Carta da Parceria de Investimentos β€” 2024
  • Fogueira
  • Carta da Parceria de Investimentos β€” 2023
  • Italy Divide 2022 β€” Terra Santa

Archives

  • 2025
  • 2024
  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015

Categories

  • Books
  • Cycling
  • Elixir
  • Entrepreneurship
  • Finance
  • Graphic Design
  • Investing
  • Javascript
  • Management
  • My Year In…
  • Painting
  • Phoenix
  • Poemas
  • Productivity
  • Psychology
  • React.js
  • Recruiting
  • Ruby on Rails
  • Shell
  • Software
  • Webpack

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy