Folks,

I am bumping this request hoping someone can help. So far I have spent some 
hours trying to ensure I never spend hours again. :(

The following is the best I hacve so far

{{$:/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>
However the first and last two fail because it only ever displays the size 
set inside the the SVG tiddler.

I would like to find a way that works with all image types consistently and 
if not create a macro that will handle what ever image tiddler it is given 
and set a given height and/or width.
A macro that can replace the customary transclusion of the image tiddler 
such that we can also say 
<<macroname {{!!icon}}>>
etc

Any css or svg experts here?

Regards
Tony

On Monday, May 27, 2019 at 10:23:46 AM UTC+10, TonyM wrote:
>
> Folks,
>
> Have you skills in using png and svg in Tiddlywiki, I could do with your 
> help
>
> *Background*
>
>    - I use images png and jpg and most commonly svg's built in and 
>    imported to my wiki. 
>    - My main use is as buttons or icons. I would like to list place both 
>    svg and other images in the icon field or similar and use them in image 
>    buttons.
>    - In some cases I would like to use 72x72 and other 22px x 22px as 
>    seems to be standard in the built in icons.
>    - I have a subscription to a large icon library and hope to package 
>    some to make up for the "missing" icons. If licencing permits I will share 
>    these.
>
> *The problem*
>
>    - I can't find a way to set the dimensions reliably when I display an 
>    image, ideally independently of the image type
>    - I would like a small number of predefined sizes 
>    - I find identifying the style or classes used already tiddlywiki 
>    difficult or identifying the special variables in use for this.
>    - What are in fact tiddlywikis default sizes?
>
> Any guidance would be greatly appreciated.
>
> Thanks in advance
> Tony
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1f908709-8992-4112-8efd-c8c19e05b378%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to