Installing Image Editor
Hyvä Commerce is an 'Early Access' product currently under development.
Early Access means that not all features of Hyvä Commerce are fully completed or released, and many areas are still under heavy development and may change. However, it means you can get your hands on everything currently available and being worked on, with a license. Find out more on our Early Access page.
Prerequisites
See Hyvä Commerce Prerequisites.
Installation
Installation via Hyvä Commerce Metapackage Recommended
The below steps are for installing Image Editor only. While this is supported to provide greater flexibility and control over installed features, in most cases, we recommend installing all Hyvä Commerce features using our metapackage.
With a License Key
-
Require the
hyva-themes/commerce-module-image-editor
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 repo's 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 Image Editor and base Hyvä Commerce module repositories to the Magento
composer.json
-
Require the
hyva-themes/commerce-module-image-editor
packages using thedev-main
branch version: - Run
bin/magento setup:upgrade
- Make sure to clean your browser cache
Additional Setup
Enable 'New' Media Gallery
The Image Editor only supports editing images when using the 'New' Media Gallery. Enabling the 'New' Media Gallery can be configured in the admin panel. This is also a requirement for Hyvä CMS.
Image Quality
High-quality images, especially in a lossless format such as png
, can be a challenge for your website configuration setup. By default, Nginx will not allow files over 1 MB. We recommend bumping this up so you have enough margin. Be aware that image file size can increase after editing.
To increase the limit to 100 MB in nginx.conf
file:
The equivalent Apache setting is
LimitRequestBody
, but is set as 0 (unlimited) by default.
Limit to required routes only
This setting only affects the below admin routes. Consider limiting the above setting to these locations only in your Nginx or Apache config:
/hyva_image_editor/image/save
/hyva_image_editor/image/duplicate
To increase the limit to 100 MB in php.ini
file:
Limit to admin scope
Where possible, e.g. if using a different php.ini
file for admin requests, consider limiting the above changes to the admin area only (i.e. not the frontend)
Further Configuration Options
Further options available are outlined on our configuration page.