On Thursday, August 8, 2019 at 3:45:02 AM UTC-7, Clemens Feige wrote:
>
> Hello 
>
> I would like to ask about setting the "right" size (height, width) of 
> images integrated in Wiki pages. How to specify the "right" size 
> considering a variable screen size and resolution? 
>
> In our environment we often insert pictures like flow diagrams, 
> screen-shots and others figures with much text. Of course our Trac users 
> use different screens, from small laptop screens up to ultra wide 
> screens, some have low resolution some have 4K resolution. Our users 
> also use different desktop and browser magnifications factors like 150%. 
>
> Of course we are aware that we can setup the height and width as 
> arguments to the Image-macro: 
>
>   https://trac.edgewall.org/wiki/WikiMacros#Image-macro 
>
> The height and width can be absolute pixels or relative percentage: 
>   [[Image(photo.jpg, width=200px)]] 
>   [[Image(photo.jpg, width=50%)]] 
>
> But neither pixels nor percentage can accommodate for all screen sizes 
> and resolutions. Often pictures are too small or too big. 
>
> I am missing the ability to specify the picture size in "em" units. I 
> believe that a picture size relative to the font size would be an 
> improvement. I know that "em" is not supported by the HTML <img> tag, it 
> needs CSS. Trac could be improved and offer "em" units for images. What 
> do you think? 
>
> Are there other recommendations to improve picture 
> visibility/readability at variable screen size and resolution? 
>
> Thanks 
> Clemens 
>

Adding recognition of em units to ImageMacro sounds good to me. That would 
be a good bitesized ticket for anyone looking to contribute to Trac.

- Ryan 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/2c047e17-bb23-4074-ae8d-0fea0fb7187f%40googlegroups.com.

Reply via email to