Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tinify/magento1-plugin
Speed up your Magento 1 webshop. Optimize your JPEG and PNG images automatically with TinyPNG.
https://github.com/tinify/magento1-plugin
image magento optimization
Last synced: 3 months ago
JSON representation
Speed up your Magento 1 webshop. Optimize your JPEG and PNG images automatically with TinyPNG.
- Host: GitHub
- URL: https://github.com/tinify/magento1-plugin
- Owner: tinify
- License: mit
- Created: 2015-05-15T13:45:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-05T11:39:30.000Z (almost 6 years ago)
- Last Synced: 2024-03-25T20:56:48.243Z (11 months ago)
- Topics: image, magento, optimization
- Language: PHP
- Homepage:
- Size: 929 KB
- Stars: 18
- Watchers: 13
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/tinify/magento1-plugin.svg?branch=master)](https://travis-ci.org/tinify/magento1-plugin)
# Compress JPEG & PNG images for Magento 1
Make your Magento 1 store faster by compressing your JPEG and PNG images.
[![Magento configuration page](/screenshots/magento-config-page.jpg?raw=true "Magento configuration page")](#getting-started)
This extension automatically optimizes your images by integrating with the
popular image compression services TinyJPG and TinyPNG.Learn more about TinyJPG and TinyPNG at https://tinypng.com/.
Do you use Magento 2? Install the Magento 2 extension instead:
https://packagist.org/packages/tinify/magento2## How does it work?
When you view a product in your webshop, Magento creates different image sizes
in its cache folders. This extension will compress these images for you
automatically. Any image sizes that are exact duplicates of each other will
only be compressed once.Your product images are uploaded to the TinyJPG or TinyPNG service and
analyzed to apply the best possible compression. Based on the content of the
image an optimal strategy is chosen. The result is sent back to your Magento
webshop and saved in your public media folder.On average JPEG images are compressed by 40-60% and PNG images by 50-80%
without visible loss in quality. Your webshop will load faster for your
visitors, and you’ll save storage space and bandwidth!## Getting started
Obtain your free API key from https://tinypng.com/developers. The first 500
compressions per month are completely free, no strings attached! As each
product will be shown in different sizes, between 50 and 100 products can be
uploaded to your Magento webshop and compressed for free. You can also change
which of types of image sizes should be compressed.If you’re a heavy user, you can compress additional images for a small
additional fee per image by upgrading your account. You can keep track of the
amount of compressions in the Magento 1 configuration section.## Installation
Copy the extension key from Magento Connect. Login on your webshop backend
and open *System -> Magento Connect -> Magento Connect Manager*.
Paste the extension key to install the extension.After installation, go to *System -> Configuration -> Image Optimization*, and
enter your TinyPNG API Key. Flush the images cache to start compressing.Regenerating the image cache and optimizing all images may take some time and
can be intensive for the server that your store runs on. If you own a large
store with lots of traffic and many product pages you may not want to flush
the entire cache at once. As an alternative you can manually delete parts of
the existing image cache in smaller batches directly from the filesystem.
Images that are missing from the product cache folder will then be recreated
and optimised on a smaller scale.## Contact us
Got questions or feedback? Let us know! Contact us at [email protected].
## Information for contributors
You will need to have the following prerequisites to make changes to the code.
* PHP 5.4 or newer.
* MySQL 5.4 or newer (integration tests).
* Magento 1.8.0 or newer.
* PHPUnit 4.8 or newer.### Running the unit tests
From the .modman/Tiny_CompressImages directory:
phpunit
## License
This software is licensed under the MIT License. [View the license](LICENSE).