Installing Media Optimization
Currently available in beta
Media Optimization is currently available in beta, which means some of the features, specifications, and details provided herein are subject to change. We recommend checking back regularly for the most up-to-date information and viewing our roadmap in regard to the general availability release.
Prerequisites
See Hyvä Commerce Prerequisites.
Image Library Required
As with default Magento, we support both the GD and Imagick image libraries, and at least one is required to be installed to utilise the functionality. Following installation, we have a system check tool in the configuration section of the Magento Admin panel that provides detailed diagnosis on the currently installed versions, and any limitations they may have.
Installation
Separate Installation Required
During the beta phase of a new feature, new packages are not included in the main Hyvä Commerce metapackage and must be installed separately. The Hyvä Commerce metapackage can also be installed, but is not required.
With a License Key
-
Require the
hyva-themes/commerce-module-media-optimization
package -
Run
bin/magento setup:upgrade
- Make sure to clean your browser cache
For Agency and Technology Partners
If you have access to the Hyvä Commerce GitLab repositories as Gold/Platinum Agency Partner, or a Technology Partner, you can install Hyvä Commerce in development environments using SSH key authentication.
You can configure the git repositories in your root composer.json
and use the repositories directly as git repos beneath your vendor directory. You can check out tags and branches, make commits and push contributions.
This installation method is not suited for deployments, because GitLab requires SSH key authorization.
-
Ensure your public SSH key is added to your account on gitlab.hyva.io.
-
Set minimum-stability to
dev
in the Magento composer.json -
Add the Media Optimization and base Hyvä Commerce module repositories to the Magento
composer.json
-
Require the
hyva-themes/commerce-module-media-optimization
package -
Run
bin/magento setup:upgrade
- Make sure to clean your browser cache
Additional Setup
No further steps are required. For more details on how to configure Media Optimization settings, see the configuration guide.