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