That will require rather a lot of changes to various parts of calibre. To start with you would have to add a image_href attribute to the Article class and populate it with the value of the src attribute of the correct img tag in populate_article_metadata (you would have to make the link relative the the top level directory of the oeb book). Then change metadata/toc.py to support image_href, then change the TOC class in oeb/base.py then the _toc_from_navpoint() method in oeb/reader.py and finally MobiWriter.
|