{{$:/core/images/timestamp-on}}
<div style="width: 2em; height: 2em;">
{{$:/favicon.ico}}
</div>
<div style="width: 2em; height: 2em;">
{{Motovun Jack.jpg}}
</div>
<div style="width: 2em; height: 2em;">
{{$:/PSaT/buttons/archive/add.png}}
</div>
<div style="width: 2em; height: 2em;">
{{$:/PSaT/buttons/archive/archive.svg}}
</div>
<<macroname {{!!icon}}>>
Thanks so much for your comprehensive info on svg files. I will look at each against some key images.
If I want to resize svgs up or down from 22pt in place like I can with the others will these better svgs scale?
Thanks
Tony
If I want to resize svgs up or down from 22pt in place like I can with the others will these better svgs scale?
I suspect pretty soon PMario will end up writing the same clarifications again because of lack of docs that explain how SVG in general works.
In particular the way scaling works in SVG is radically different that pixel based images. Its easy. But you need to grasp how height & width work in relation to the SVG ViewPort setting.
The viewBox actually isn't relevant for display width and height.The viewBox setting is just an initial definition, to normalize the coordinate system. Every other x/y point is relative to this base setting. ... The smaller the numbers here, the more digits after the decimal point, are needed to maintain precision.
For our icon size SVGs (0 0 128 128) is OK and 1-3 decimal digits should be enough, for most icons. ...Much more details can be found in the SVG spec.
PMario wrote:The viewBox actually isn't relevant for display width and height.The viewBox setting is just an initial definition, to normalize the coordinate system. Every other x/y point is relative to this base setting. ... The smaller the numbers here, the more digits after the decimal point, are needed to maintain precision.Agreed. But if you start messing about with it you may well have trouble :-).
Even though SVG has been around for yonks (long time) on first use it still takes time to "get"?
PMario wrote:
...with TW we use it in a "special way". ù
I want to know how to prepare svgs I import so I can use them as buttons standard big and little, as a tile or an actual image. I know favicon must be a bit map and I convert some svgs to long for this. However I would like to use of jpeg etc the same way as svgs. Even if I have a macro to handle differences if necessary.
I would like to have a single way I can use any image type using a single height and or width. And clearly understand what the settings need to be to set buttons also in tiddlywiki standard buttons.
Ideally I will not need to create a different tiddler for each size application.
To be honest I am sick of always stumbling with image sizing.
Regards
Tony