image-compressor
Docs
License
GitHub
About
image-compressor
v0.5.3
A simple JavaScript image compressor.
Example
Drop image here or
Options
maxWidth
maxHeight
minWidth
minHeight
width
height
quality
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
NaN
scaleAndCenterCrop
Yes
No
mimeType
convertSize
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)
Download
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)