We would like to add png, jpeg and eps images, where exactly do these image types need to be added?
(actually, the eps have turned into x-vclgraphic)
That is, there is not only a single company logo, but also other images such as certifications that need to be displayed on externally communicated documents.
seems relatorio has restructured and no longer uses EXTENSIONS as did when the earlier posts were made.
That said, I don’t understand why it does not simply copy any images in the template document even if not overridden programmatically.
For example, the template has the following snippet:
</draw:frame><draw:frame draw:style-name=“fr2” draw:name=“Image1” text:anchor-type=“paragraph” svg:x=“0.25cm” svg:y="-1.06cm" svg:width=“3cm” svg:height=“2.551cm” draw:z-index=“7”><draw:image loext:mime-type=“image/jpeg”>
the report generation using this template fails with:
AttributeError: module ‘magic’ has no attribute ‘from_buffer’
How to get this to work, being single company, we don’t care to override the images programatically anyway.