SneakyPack is The Best JPEG Optimizer available as a web service. Compress your photos without quality loss.
60% of the usual JPEG size
- Faster downloads
- Less hosting costs
- Longer battery life
- First 500 megapixels free
Human Vision - Oriented
SneakyPack employs adaptive quality compression, where each spot of an image
is evaluated from the human eye perspective. To achieve 40% savings, SneakyPack mimics characteristics of human vision: detects faces, contrast objects,
certain color patterns, and textures, thus eliminating only visible compression artifacts.
Fix Incoming JPEGs
Already got JPEGs and not satisfied with the quality? Upload the low-quality JPEG files and get rid of artifacts.
To compress an image, POST it to the following URL, and receive the gzipped jpeg file. CORS supported.
|key||API key from your profile. This is the only required parameter.|
|q||Required image quality, integer number from 75 to 99. Default is 90.|
|filename||Input file name. Some RAW image formats require file name to detect the type and size of the image.|
|dontimprove||No value. Include this parameter if you do not want to improve incoming JPEGs|
|dontgzip||No value. Include this parameter if you do not want to gzip the resulting JPEGs|
|max_width||If present, the image is resized to match the limitations and at the same time preserving aspect ratio|
|200||Success. The response body is the gzipped JPEG file. See Webserver configuration for instructions on how to configure your web server to support compression.|
|403||No api key/wrong api key supplied. Please add the 'key' parameter to the request. You can find it in your profile.|
|402||Payment required to proceed. Please visit your profile for details.|
|451||Please validate your email. Click the validation link that you received by email, or visit your profile to regenerate the validation email.|
|406||Unknown file format.|
|400||Bad number format for one of the integer parameters: q, max_width, max_height|
SneakyPack relies on gzip compression to achieve adaptive quality. Both REST API and the web form return gzipped .jpg files by default.
There are several options:
- It is more convenient to serve precompressed .jpg.gz files, and decompress on-the-fly for user-agents that do not support
compressed content. Instructions are available for Apache web server and
Tomcat and other servlet containers
- Turn on gzip compression in webserver and keep the decompressed version of the images
- Turn on SSL compression in webserver and keep the decompressed version of the images
- Some webservers support pre-compressed content, but require both compressed and original versions of the file,
because some user-agents do not support compression
as fast as 50Mb/sec on modern processors. Installation is easy: download the sneakypack.min.js
to the head:
Then invoke the load procedure like this:
<img src="" onerror="SneakyPack.load('image.jpg.gz',this)">
Alternatively, handle the image manually:
No futher server configuration is required.
Apache web server
Following is instruction on how to make Apache web server recognize the .jpg.gz files and serve them properly.
- Install the mod_precompress module
- Put image.jpg.gz files in your htdocs folder
- Reference image.jpg.gz without the .gz prefix:
Tomcat and other servlet containers
Following is instruction on how to make Java-based web servers recognize the .jpg.gz files and serve them properly.
- Download GZipServletFilter-1.0-SNAPSHOT.jar and put it into the $CATALINA_HOME/lib directory
along with other .jar files. Alternatively,
build GzipJPEG-1.0-SNAPSHOT.jar from sources.
- Open $CATALINA_HOME/config/web.xml and add the following lines along with other
- Restart Tomcat
- Include compressed JPEGs into your webpages:
We charge by megapixel of the resulting
compressed image size, which may differ from the original image size
if you choose to limit your image size in the REST API or in the "Options" form. The price does not depend on other compression options.
|Up to 1000 Megapixels||$0.01/Megapixel|
|Up to 10000 Megapixels||$0.006/Megapixel|
|Up to 100000 Megapixels||$0.004/Megapixel|
|Above 100000 Megapixels||$0.002/Megapixel|
Pay only upon reaching -$5.00 on your account!
It is safe to close the account without paying the remainder.
|a big website with lots of hi-def photos:||~ $10.00|
|a moderate photography hosting:||~ $300.00|
|Instagram:||~ $20 000 000.00|