By default, Liferay uses PDFBox to generate previews for files added to the document library. This is because PDFBox is the only 100% Java-based tool that can be distributed with DXP.
However, since PDFBox only supports a limited number of file types, Liferay also provides integration with third-party services to support additional file types. These services can be used to generate high quality file previews more quickly for more of your files.
Important
To use third-party services to generate previews, you must first install them on the server running your Liferay instance.
Liferay currently supports integration with these services:
LibreOffice or OpenOffice: These programs can be used in server mode to generate thumbnails and previews for supported file types (.docx, .odt, .ppt, .odp, etc.). You can also use them to convert documents and view them in your browser. See Enabling OpenOffice/LibreOffice Integration to learn more.
FFmpeg: This program provides support for audio and video files. In addition to generating file previews, you can play multimedia in your browser’s native HTML 5 player. See Enabling FFmpeg for Audio and Video Previews for more information.
Note
Liferay 7.3.x and earlier versions use Xuggler for generating audio and video previews. See Enabling Xuggler for more information.
With these services installed and configured, Documents and Media can provide in-application previews of most file types.
If you’ve installed ImageMagick, Adaptive Media can use it to generate alternative resolutions for images stored in the document library. By default, ImageMagick supports avif, gif, heic, tiff, and webp files, but you can add additional media types if needed. See Adaptive Media Configuration Reference for more information.
Once you’ve enabled third-party services, Liferay automatically uses them to generate previews and thumbnails for supported media types. However, if you’ve uploaded assets before enabling these services, you must generate the thumbnails and previews manually.
To generate them for image files, you can use Adaptive Media. See Managing Image Resolutions for more information.
For audio, video, PDF, and OpenOffice files, you can regenerate previews and thumbnails via the Server Administration application:
Open the Global Menu ( ), go to the Control Panel tab, and click Server Administration.
Go to the Resources tab.
Under Regeneration Options, click Execute for the desired media type.
This begins generating missing images for the documents. Running this process does not affect existing previews and thumbnails. If you want to regenerate all previews and thumbnails, first execute this clean-up action: Reset preview and thumbnail files for documents and media.
This process does not affect Adaptive Media previews and thumbnails for image files. To manage them, use Adaptive Media.
This website uses cookies and similar tools, some of which are provided by third parties (together “tools”). These tools enable us and the third parties to access and record certain user-related and activity data and to track your interactions with this website. These tools and the informationcollected are used to operate and secure this website, enhance performance, enable certain website features and functionality, analyze and improve website performance, and personalize user experience.
If you click “Accept All”, you allow the deployment of all these tools and collection of the information by us and the third parties for all these purposes.
If you click “Decline All” your IP address and other information may still be collected but only by tools (including third party tools) that are necessary to operate, secure and enable default website features and functionalities. Review and change your preferences by clicking the “Configurations” at any time.
Visit our Privacy Policy