def create_cover(title, authors, series=None, series_index=1, prefs=None, as_qimage=False):
 u' templates are ignored, to ensure that the specified metadata is used. '
 mi = Metadata(title, authors)
 if series:
  (mi.series, mi.series_index) = (series, series_index)
 d = cprefs.defaults
 prefs = override_prefs((prefs or cprefs), title_template=d[u'title_template'], subtitle_template=d[u'subtitle_template'], footer_template=d[u'footer_template'])
 return generate_cover(mi, prefs=prefs, as_qimage=as_qimage)

def create_cover ( title , authors , series = None , series_index = 1 , prefs = None , as_qimage = False ) : mi = Metadata ( title , authors ) if series : ( mi . series , mi . series_index ) = ( series , series_index ) d = cprefs . defaults prefs = override_prefs ( ( prefs or cprefs ) , title_template = d [ u'title_template' ] , subtitle_template = d [ u'subtitle_template' ] , footer_template = d [ u'footer_template' ] ) return generate_cover ( mi , prefs = prefs , as_qimage = as_qimage )
create a cover from the specified title .