Forum Discussion
TamaraStaton
2 years agoCommunity Member
image size controls (small, medium, large)?
Hi everyone,
Quick question about the size at which images display in Rise. I want to insert smaller icon graphics into image blocks and prevent them from being expanded to fill the space. Any s...
Tim_
2 years agoCommunity Member
If you can get the icons in SVG format, there is a trick you can do in the tag to make it not scale. SVG files are just text, you can edit them in a text editor.
Here is the start of a normal svg file:
<?xml version="1.0" encoding="UTF-8"?>
<svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 858.99 844.33">
<rect x="142.74" y="150.25" ... etc
Here's what you add to make it not scale - preserveAspectRatio, width and height:
<?xml version="1.0" encoding="UTF-8"?>
<svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 858.99 844.33" width="100" height="100" preserveAspectRatio="xMidYMin slice">
<rect x="142.74" y="150.25" width="574.56" ... etc
I also find adding _NOPROCESS_ to the filename useful to ensure Rise's file compressor doesn't mess it up.
I've added files with and without as an example.