If I convert my images with
convert -quality 80% *.jpg
It works, but the software changes the file names to the first one it picks. How can I keep the name or even replace the previous image with that of a lower quality.
Try this instead:
mogrify -quality 80% *.jpg
convert command help:
convert input-file [options] output-file
Now a little script to convert all jpg files to 80% quality of original under current directory
for file in *.jpg; do convert "$file" -quality 80% "$file" done;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With