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

Image Compression ({compression}%)

EXPERIMENTAL

{compression > 0 && (

This option can cause color issues with some images. For PNGs, if you use compression, they'll use indexed colors. Keep compression to 0 for PNGs for lossless quality.

)}
); }