Repository navigation
Data Grid image columns (EN + JA) - #800
Conversation
…lay tab (EN + JA) - user/chart-types/grid-chart: new Image Columns section (settings, view-mode behavior, exports) with five screenshots, plus two rows in Current Limitations. - web/server-export: new Image Columns in Exports section covering image downloads in server exports, validating image URLs in the data source provider, caching, redirects (RefuseRedirects) and download limits. - web/configure-export: MaxConcurrentImageDownloads setting. - web/hyperlink-columns: field settings labels renamed (Display tab, Display as, Text).
zdrawku
left a comment
There was a problem hiding this comment.
So far so good :) I checked the following technical content against the SDK source and it holds:
- the download limits
- the
MaxConcurrentImageDownloadsdefault - the
__RevealExportImage:prefix and theRefuseRedirectsnames on all three platforms.
Please add the following changes (EN + JA):
- Release notes entry is missing
This PR adds a user-facing feature and two public APIs (MaxConcurrentImageDownloads, RVWebResourceDataSource.RefuseRedirects). It also documents that server exports now send HTTP requests to URLs that come from the data. That needs a release note. master already has a ## Preview section, so please merge master first and add the following under ## Preview > ### New Features in docs/web/release-notes.md:
- **Data Grid columns can now show their values as images**. On a text field whose values are absolute `http`/`https` URLs or `data:image` URLs, open the **Display** tab of the field settings (called **Link** before this release) and set **Display as** to **Image**. Each column sets its image size (fit to row height, or a custom size from 16 to 400 px), fit, roundness and an alt text that can include field values. Clicking an image opens a larger preview. See [Image Columns](https://help.revealbi.io/user/chart-types/grid-chart/#image-columns).
- **Server-side PDF, PowerPoint and Image exports embed the images of image columns**. The server downloads each image through your data source provider, which receives it as an `RVWebResourceDataSourceItem` whose data source `Id` starts with `__RevealExportImage:`, and can allow, change or reject it. Without a data source provider, the server downloads every image URL in the data, so allow only the image hosts you trust. If your provider throws for items it doesn't recognize, as recommended in [Row-Level Security](https://help.revealbi.io/web/row-level-security/), handle the image items first, or no image is exported. Exports from the dashboard's **Export** menu show remote images as their URL. See [Image Columns in Exports](https://help.revealbi.io/web/server-export/#image-columns-in-exports).
- `MaxConcurrentImageDownloads` in the export configuration limits how many images the server downloads at the same time across all exports (4 by default). The new `RefuseRedirects` property of `RVWebResourceDataSource` makes a Web Resource download fail on a redirect instead of following it; image downloads for exports set it to `true`.server-export.md: the note on Export-menu exports gives the wrong reason
Exports the end-user starts from the dashboard's Export menu, and
RevealView.toImage, are captured from the page in the browser, which doesn't load remote images.
The viewer's browser does load the images; they're on screen. They're dropped because the export renders a snapshot of the page with network requests blocked. I suggest:
Exports the end-user starts from the dashboard's Export menu, and
RevealView.toImage, are rendered from a snapshot of the page, which doesn't include remote images.
row-level-security.mdneeds a pointer to the image items
That page tells readers to write the data source provider as an allowlist and throw for anything else. Anyone who followed it will have every export image rejected, with only a warning in the server log. The new section mentions this, but readers of the RLS page won't see it. I suggest this note right after the allowlist paragraph, in EN and JA:
:::note
Server exports of Data Grid image columns also call your data source provider, once for each image URL. Handle those items before the code that throws, or every image is left out of the export. See [Validating Image URLs](server-export.md#validating-image-urls).
:::…and an RLS note on export images
|
Thanks, Zdravko! I merged |
Documents the Data Grid image columns added in Infragistics-BusinessTools/Reveal#4598, in English and Japanese.
User docs:
user/chart-types/grid-charthttp/httpsanddata:imageURLs), and each setting with its default (alt text, image size, fit, roundness).setAdditionalHeadersProvider, and only those URL schemes load.jaimage folder; the Display tab one is captured in Japanese.Developer docs
web/server-export: new Image Columns in Exports section. Server exports download the images through the data source provider, which can allow, change or reject each image URL. The section also covers caching withDefaultRefreshRate, redirects and the newRefuseRedirectsproperty, and the download limits. Samples for ASP.NET, Java and Node.js.web/configure-export: theMaxConcurrentImageDownloadssetting.web/hyperlink-columns: the field settings labels the feature renamed (Display tab, Display as, Text), with a pointer to the image section.The Japanese pages use the Japanese UI strings added in Infragistics-BusinessTools/Shared#711.
This should merge once Reveal#4598 is released.