huridocs / uwazi-documentation

MIT License
2 stars 3 forks source link

Fix image sizings #3

Open fnocetti opened 4 years ago

fnocetti commented 4 years ago

Markdown provides no way to set the images size so we need to use image files with the size we need them to be shown on the document. By default it will use the maximum size it can fit on the article. This is particularly important for inline images (like those showing app icons) as they will use all the space they can, breaking the text.

txau commented 4 years ago

@fnocetti I guess regular html is supported for images in GitHub since a while ago:

<img src="https://github.com/favicon.ico" width="48">

Resulting in:

fnocetti commented 4 years ago

@txau you're right. But I forgot to say that using html inside the markdown messes with the PDF generation.

nwyu commented 4 years ago

All icons have been resized. Still need to resize other images and scrub files for [image alt text] so this text does not appear improperly on the pdf.