image-compressor v0.5.2

A simple JavaScript image compressor.

Example


Drop image here or

Options


Input (original)


lastModified:
{{ input.lastModified || 'N/A' }}
lastModifiedDate:
{{ input.lastModifiedDate || 'N/A' }}
name:
{{ input.name || 'N/A' }}
type:
{{ input.type || 'N/A' }}
size:
{{ input.size | prettySize }}

Output (compressed)


lastModified:
{{ output.lastModified || 'N/A' }}
lastModifiedDate:
{{ output.lastModifiedDate || 'N/A' }}
name:
{{ output.name || 'N/A' }}
type:
{{ output.type || 'N/A' }}
size:
{{ output.size | prettySize }} ({{ ((1 - (output.size / input.size)) * 100).toFixed(2) }}% off)