Feature Request: Include Images (png, etc) within drawing constructs

Asked by Todd

From the aafigure docs:
"""
The aafigure directive has the following options:
   • :foreground: <str> foreground color in the form #rgb or #rrggbb
   • :background: <str> background color in the form #rgb or #rrggbb (not for SVG output)
   • :fill: <str> fill color in the form #rgb or #rrggbb
"""

It would be very cool if you could extend this directive to include options for setting background images, too. This would make aafigure a generic image processing tool, as well as a figure drawing tool.

This, plus my other feature request (composition via image inclusion/aggregation) would be a powerful combo.

Question information

Language:
English Edit question
Status:
Answered
For:
aafigure Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
zsquareplusc (zsquareplusc) said :
#1

The drawbacks I see here are:

- This functionality depends on external files while the point of aafigure is that the complete diagram can be integrated within the text document.

- Matching the diagram with the background image will probably be difficult.

- Embedding the image for all the different backends may be difficult as it would need to work with PDF, SVG, PIL.

I'm not completely against this idea but I would say "not right now".

Can you help with this problem?

Provide an answer of your own, or ask Todd for more information if necessary.

To post a message you must log in.