type CompressionInputProps = { compression: number; handleCompressionChange: (arg: any) => void; }; export function CompressionInput({ compression, handleCompressionChange, }: CompressionInputProps) { return (

Image Compression ({compression}%)

{compression > 0 && (

PNG compression is lossless, so it might not reduce the file size significantly and higher compression values might affect the performance. JPG and WebP compression is lossy.

)}
); }