I would like to resize an image (say png format) using convert. The tricky thing is that I want to retain the quality of the image when I resize the image back to the original dimensions.
convert -resize 50% original.png smaller.png convert -resize 200% smaller.png backtooriginal.png
backtooriginal.png has a decreased quality compared to original.png, and I would like to avoid that. If it was one image, I can use tools like gimp. But I need to automate this.