...
width | 50% |
---|
Table of Contents
Warning |
---|
Firefox user notice: Please use another web browser to view this document. Sorry for the inconvenience. |
...
width | 30% |
---|
The Minifier extension is one of the solutions for optimizing your content in an online store powered by Magento 2. This extension compresses image size, converts images from PNG to JPG, automatically generates image titles. After optimization, all original images will be stored on the server for 30 days, in order of unsatisfactory result to do a rollback.
Compatibility: Magento Open Source 2.3.X - 2.4.X
Thank you for choosing Aheadworks!
Installing Magento 2 Minifier
...
Panel | ||||
---|---|---|---|---|
| ||||
1. Backup your web directory and store database |
Panel | ||||
---|---|---|---|---|
| ||||
2. Download the Minifier installation package |
Panel | ||||
---|---|---|---|---|
| ||||
3. Upload contents of the Minifier installation package to your store root directory |
...
borderWidth | 2px |
---|---|
borderStyle | solid |
4. In SSH console of your server navigate to your store root folder:
No Format |
---|
cd path_to_the_store_root_folder |
run:
No Format |
---|
php -f bin/magento module:enable Aheadworks_Minifier |
then:
No Format |
---|
php -f bin/magento setup:upgrade |
after:
No Format |
---|
php -f bin/magento setup:static-content:deploy |
Panel | ||||
---|---|---|---|---|
| ||||
5. Flush store cache; log out from the backend and log in again |
Note |
---|
Make sure the installation is done from the FTP administrator account. Otherwise, set 775 permissions to the store root directory after the extension is deployed. |
...
width | 50% |
---|
...
borderWidth | 2px |
---|---|
borderStyle | solid |
If you are installing an extension from Aheadworks for the first time, you need to add our composer repository to your Magento store:
Panel | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
1. Login to your ssh console and navigate to your store folder:
Run the following command:
On successful execution of the commands you will be able to use the composer to install the extensions. |
...
borderWidth | 2px |
---|---|
borderStyle | solid |
To install the extension:
2. Login to your ssh console and navigate to your store folder:
Panel | ||||
---|---|---|---|---|
| ||||
cd path_to_the_store_root_folder |
...
borderWidth | 2px |
---|---|
borderStyle | solid |
3. Run the following command to install the latest version of the extension:
Panel | ||||
---|---|---|---|---|
| ||||
composer require aheadworks/module-minifier |
if you need to install a specific version, run this command:
Panel | ||||
---|---|---|---|---|
| ||||
composer require aheadworks/module-minifier:<version> |
Tip |
---|
Specify the version of the extension in <version> |
Panel | ||||
---|---|---|---|---|
| ||||
When prompted, enter Composer Public Key (Username) and Private Key (Password): |
Note |
---|
Both Composer Public Key (Username) and Private Key (Password) can be found in My Projects and Licenses in your personal account on our site: |
Panel | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||
4. Enable the extension:
Next, register the extension:
Recompile your Magento store if you are in the Production mode:
To verify that the extension is enabled, run this command:
Clean store cache, by running the following command:
Log out and Log in the backend again. |
...
borderWidth | 2px |
---|---|
borderStyle | solid |
To upgrade the extension:
5. To update or upgrade an extension:
Download the updated extension file. Take note of the module-name and version. Export the contents to your Magento root.
If a composer package exists for the extension, run one of the following.
Code Block | ||
---|---|---|
| ||
composer update aheadworks/module-minifier |
Code Block | ||
---|---|---|
| ||
composer require aheadworks/module-minifier:<version> |
Run the following commands to upgrade, deploy, and clean the cache.
Panel | ||||
---|---|---|---|---|
| ||||
php bin/magento setup:upgrade --keep-generated
php bin/magento setup:static-content:deploy
php bin/magento cache:clean |
Introducing Magento 2 Minifier
Section |
---|
The Minifier extension makes working in an online store as easy as possible by offering the following options:
|
General Information
Section | ||
---|---|---|
Authorizing to BuildifyBefore starting to work with the extension you need to enter the authorization keys by going to Stores → Configuration → Aheadworks Extensions → Minifier. Two keys are required: Public and Private API.
Enable prefetchingTo enable prefetching in Minifier, set Enable to Yes. By default, this option is set to No. Minifier will track when a user is about to click on a link on your shop and load that link in the background. |
Section | |||||||
---|---|---|---|---|---|---|---|
The dashboard has four areas:
Clicking on the Review us button you will be automatically redirected to the Minifier product page on Shopify app store. Settings ConfigurationThe Automatic optimization service tab provides information about the number of already optimized images. For changing optimization configurations click on Edit setting.
The settings area allows to configure the following:
After clicking on the Save settings button new settings will be saved and will be used in the future for the auto-optimization process for not optimized store pictures. Optimization performanceThe images optimized graph introduces the information on the extension usage. Choose the needed period to check the number of optimized images during it. The Optimization History area contains the following columns:
To view the report on optimization click on the link. The report describes the detailed information on:
Knowledge BaseThe Frequently Asked Questions area introduces answers for most asked questions about the working process in Minifier.
|
...
When the optimization is complete, you may check the results, proceeding, for example, to the image gallery of any product and see how the size changed without quality loss.
Uninstalling
...
width | 50% |
---|
Manual Removal
...
1. Disable the module by executing the following commands:
No Format |
---|
php bin/magento module:disable Aheadworks_Minifier
php bin/magento setup:upgrade |
...
2. Remove the extension files from the following folder:
No Format |
---|
app/code/Aheadworks/Minifier |
...
width | 50% |
---|
Automatic Removal (via Composer)
...
1. Disable the module by executing the following commands:
No Format |
---|
php bin/magento module:uninstall Aheadworks_Minifier |
...
Warning |
---|
For more information follow the product user manual on our website |
Thank you for choosing Aheadworks!
Need Customization?
You can always find the latest version of the software, full documentation, demos, screenshots, and reviews on http://aheadworks.com
License agreement: https://aheadworks.com/end-user-license-agreement
Contact Us: https://aheadworks.com/contact
Copyright © 2021 Aheadworks Co. http://www.aheadworks.com