Regenerating preview images
How to regenerate preview versions for one or many assets — for example after changing the preview format.
If you need to regenerate versions created in the Fylr File Worker for a given asset (or many assets), follow these steps:
A single file
In an assets detail view, open the "info" panel and in the "general" tab follow the link to /inspect/files (next to your assets ID)

select the file you want to regenerate versions for - mostly you want to use the original as the source for generated versions
select the action that suits your needs, often a basic resync will suffice
confirm the the action

Now new versions will be generated. To confirm the creation look in the detail view where we started the process and find your newly created versions.
Multiple files
Generating a newly created rendition for existing records
After adding a new rendition to the fileworker, the new rendition is not produced automatically and will be generated for each new file uploaded to the instance.
To produce the new rendition for existing records, follow this list:
open the
/inspect/filespage of your Fylr instanceapply a class filter to only target files of the newly created renditions file class
use the
Versionselect to filter only for original files. select onlyParentsto only show originals and not the existing renditions.Refresh the result list by clicking
search(list should show only Originals now)either select all on page, the entire search result or select the files you need
select action
resyncto generate missing renditions for the selected filesconfirm the the action
Generating renditions for all files
If renditions turn out erroneous it's best to produce a new set versions using the action produce versions . This will produce versions for all selected files.
Changing the preview format
The recipe that generates a preview version also determines its file format — for example whether an image preview is produced as PNG or JPEG. To change the format:
Open the base configuration and go to File Worker → Preview Configuration.
Edit the version and adjust its recipe options so it is produced in the desired format (for example JPEG instead of PNG), then save.
The new format applies to newly uploaded files only. Re-generate the files that already exist with a resync as described above.
Depending on the number of selected files the resync can take some time. To confirm the successful generation of new versions find a record in the Fylr frontend and inspect the versions in the details Info tab.
Alternatively inspect the detailed logs in the Fylr console located at the URL <fylr url>/inspect/system/console .
You can also watch the outstanding jobs in the Queue Manager at /inspect/system/queues — select the file queue.
Last updated