Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroeneweg committed Nov 21, 2022
1 parent b5a6517 commit ac79cc2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ View images, with zoom and pan
- Shows the image full screen
- Allows zooming and panning
- Tap image to close viewer
- Image source can be Mendix image, base64 encoded data URL or a local file on the device

## Image width / height
Widget needs the image width/height. For images created in the backend, use CommunityCommons.GetImageDimensions. For images taken in the native app, use the TakePictureAdvanced JavaScript action, which returns the dimensions in the ImageMetaData object.
Expand All @@ -19,3 +20,10 @@ The intended use of this widget is to show it without any other content on the p

It is possible to put other content, like a header or footer, on the page, these will overlay the image.

### Data URL
For base64 encoded image data, the data must have the data URL prefix, where `<ext>` is the image format, like jpg or png:
```
data:image/<ext>;base64,<base64 data>
```
(Do not include the `< >` in the data.)

0 comments on commit ac79cc2

Please sign in to comment.