Frequently Asked Questions
I forgot my token, what to do?
If you have lost your token, you can have it sent in an email by using the below API call. Remember to replace test_user
and test@pixellena.com
with your details:
curl -X POST https://accelerator.shimmercat.com/presentation-api/v1/tokens/start-recovery/ -H 'Content-type: application/json' -d '{"username": "test_user", "email": "test@pixellena.com"}'
For security reasons we don’t send the token directly, instead the email includes a link to obtain the token. You can also contact us at ops@pixellena.com and provide your username, and we will help you!
Why do the API use the image hash?
For a specific image to be optimized, the API uses a unique hash value that is based on the image file content. The reason for using a hash value is to be able to uniquely identify the image - even if, for example, the file name changes. To create a value for image_file_hash you can for example use https://emn178.github.io/online-tools/sha1_checksum.html.
How does the Light API and Lux API differ?
The image optimization comes in two packages. Each of the packages are available both as an API and as an add-on service that can be contracted in our content distribution network, which we can put in front of your websites to cache and accelerate them.
- Light package - no configuration needed For those that only need serving their images in new image formats, we offer the so called light tier, which can be plugged directly in front of an existing e-commerce and requires no configuration. It takes care of converting JPEG files to WebP for those browsers that can accept WEBP. It can also convert to JPEG2000.
- Lux package - complete image handling Serving images at the right size requires starting from high quality images. Sometimes, the high quality image is not even available for the e-commerce manager, or the e-commerce platform serving the website has a bolted asset pipeline which is really difficult to customize. Then there is the need of serving the image not only in different formats, but also at different sizes and quality levels, depending on the browser and the viewing device. Lux has been built in for those that require that extra-bit of functionality.
How can I encode an image file to base64?
To encode image file to base64 to be used in parameter file https://base64.guru/converter/encode/file.
How can I generate a universally unique identifier (UUID)?
To generate a UUID, check for example https://www.uuidgenerator.net.
What to provide for the hash_prefix and the job_name?
Provide the first two characters of the previously used image_file_hash
as the hash_prefix
and the job_name
as the previously used image_file_hash
.