PavelS0 / docx_template_dart

A Docx template engine
Apache License 2.0
43 stars 31 forks source link

Wrong aspect ratio for images in table #34

Open fillsinger opened 2 years ago

fillsinger commented 2 years ago

Hi,

how is it possible to insert an image into a table which keeps its original aspect ratio?

Expected Behaviour I want to add images of varying aspect ratio into a table. I would expect the image width to adjust to the width of the row and the height should vary depending on the aspect ratio.

Current Behaviour: However, when inserting an image it is inserted into exactly the same aspect ratio as defined in the template. So when using the example template, my image is inserted into a square with equal dimensions, so that the image distorted.

Regards

Fabian

LukasBurk commented 1 year ago

I have the same problem. Is there already a solution for this?

Fiat2U commented 1 year ago

The same thing happened to me. For your convenience, I've included a screenshot at https://github.com/Fiat2U/docx_template_flutter_sample.