How to open a WebP image in FastReport .NET

2023-05-25

How to open a WebP image in FastReport .NET

WebP is a file format developed by Google in 2010. Its feature is an advanced compression algorithm that allows you to reduce the image size without visible quality loss.

Starting from version 2023.2.14, FastReport .NET has a plugin that allows opening images in the WebP format. It extends the opportunities of the PictureObject object, which means that this image can be opened from the PictureObject editor or uploaded from code.

First, you need to build the project:

С:\Program Files (x86)\FastReports\FastReport.Net\Extras\Core\FastReport.Plugin\FastReport.Plugins.WebP

After building the project, you need to add the plugin to the application in one of two ways.

Method 1. Add a plugin through the designer:

Adding the plugin

Method 2. Add the plugin as a dependency when starting the project and register it in the code with the following command:

new FastReport.Plugins.WebPAssemblyInitializer();

It is important to note that FastReport.Skia supports the WebP format without a plugin. In some situations, it may be necessary to use other versions of the SkiaSharp.NativeAssets package. In such cases, the project must be built from the source code itself.

Note: the plugin converts the image from the WebP format to a PNG picture, which is already used by the PictureObject.

The uploaded image in the designer will be displayed as follows:

Open WebP in the designer

November 26, 2024

Installing FastReport on .NET 8.0 and Creating a Simple Report

The purpose of this article is to explain step by step how to install FastReport on .NET 8.0 and how to create a simple report. Taking the reporting process from the beginning, it will show how to connect, design and view reports.
November 20, 2024

Localization and Language Switching in FastReport VCL

FastReport VCL supports 40 languages for interface localization and allows you to change the language on the fly through menus or code, without recompilation.
November 01, 2024

New Features of the FastReport VCL Editor

We are considering new features of the report editor: extension lines, highlighting of intersecting objects, updated report and data trees.
Fast Reports
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2024 Fast Reports Inc.