Preparing images for publishing to the internet

Removing metadata

Every image I post on my websites should contain as few data as possible. To minimize the data, I remove the metadata from every image. I do this with the following command:

exiftool -overwrite_original -all= image.jpg

Converting image to webp for smaller size

Since some of my images are quite large, they take long to load on slow connections. Thus I convert them to webp, which is optimized for the web. To convert an image use the following command:

cwebp -q 90 image.jpg -o image.webp