How to compress image without losing quality?

If I compress my image with ImageKit, will I end up losing quality? What are the best practices to do reduce the image size while ensuring it looks good visually as well?