Appearance
Migration from iframe v4 [beta] API
This page is designed to help clients migrate from the deprecated older version of LIQA to the current one. This page contains information for clients, utilising LIQA v4 [beta] API, described in previous documentation.
Versions Comparison Summary
Feature | previous (iframe v4 [beta]) | current (web component v6) |
---|---|---|
Delivery method | CDN | CDN |
Integration method | JS script | web component |
Image format by default | base64 | blob |
User Interface | included, old design | included, new design |
Option to upload image from device gallery | no | yes, optional |
Migration Steps
WARNING
We recommend to fully remove the previous LIQA version integration from the code of your application before start.
- Start by following the Quick Start integration with default settings
- Add a function to perform image conversion from
blob
tobase64
to match the/upload
SaaS API. - If your application allows users to upload images from the device gallery, allow this option in the new LIQA by default and remove this feature from your application code.
- Customize the LIQA interface style and texts. See UI styling and text replacement documentation pages.
- Add error handling logic.
- Test your application on mobile devices. Check system requirements for the best performance.
- Check our recent updates regularly on the What's new? page.
Features Compatibility Notes
Change size of iframe window
The previous version (v4 [beta]) offered a way to set the size of the iframe
tag that LIQA uses by adjusting the height and width in the relevant CSS <style>
tag. The current version (v6) provides LIQA as a native web component, so you can set the size of the container natively.
Select preset (hair)
The previous version (v4 [beta]) offered a way to select a preset (face or hair) by passing the "distancePresets": "hair"
in the data-liqa-config
. The current version (v6) offers an API to select a preset, check the Presets documentation page.
Manually start LIQA session
The previous version (v4 [beta]) offered a way to start LIQA manually by passing autostart: false
in the data-liqa-config
. The current version (v6) starts LIQA session automatically after the web component is rendered. You can postpone the session start by changing the visibility of the container, check the guide about hidden
property.
Texts replacement
The previous version (v4 [beta]) offered a way to replace texts by using Liqa.fn.setI18n
method, see previous version doc.The current version (v6) offers a way to replace texts, see Text replacement documentation page.