I have been working with a lot a photos I take during my walks in NYC and when I travel to visit coffee farms in Latin America. I needed an efficient way to process my images for the web. I put these brief instructions together. You can also make this a script and process images in bulk.

To convert a JPG image to WebP format using ImageMagick, you can follow these steps:

Install ImageMagick: Make sure you have ImageMagick installed on your computer. You can download it from the official website (https://imagemagick.org/) and follow the installation instructions specific to your operating system. If you’re on a mac you can always use brew to install this.

Use the following command to convert the JPG image to WebP:

magick inputFile.jpg outputFile.webp

Adjust compression quality (optional): By default, ImageMagick will use a compression quality of 75. If you want to adjust the compression quality, you can add the -quality option followed by a value from 1 to 100. For example, to set the quality to 90, modify the command as follows:

magick inputFile.jpg -quality 90 outputFile.webp

Remember to replace “magick” with “convert” if you are using an older version of ImageMagick.

You can always contact me if you have any questions. Make sure to check out my cool Coffee mugs and T-Shirt shop. I make all the designs.

Leave a comment

Your email address will not be published. Required fields are marked *