View Single Post
Old 04-14-2021, 06:38 PM   #5797
Ascello
Enthusiast
Ascello began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 4
Quote:
Originally Posted by ownedbycats View Post
For the cover generation, I think it was stated that FFF can pass a cover image onto Generate Cover to use. Currently, my generated cover for FanFiction.net looks like this:

Attachment 186616

I was thinking since the ffnet covers are small, it would fit rather nicely where the oversized logo is now...

Can generate_cover_settings use different profiles depending on whether a cover image is found? (Preferably, I'd also want to do this only for FanFiction.net; I use a different cover profile with different colours and oversized logo for AO3.)

Code:
replace_metadata: 
## Prettyizes fanfiction publishers.
 site=>www.fanfiction.net=>FanFiction.net
 site=>archiveofourown.org=>Archive of Our Own

generate_cover_settings:
## Per-publisher
 ${site}=>^FanFiction.net$=>FFNet
 ${site}=>^Archive of Our Own$=> AO3
Well, if you want to do this only for fanfiction, just stuff it under [fanfiction.net]

Basically i think everything is here:
Code:
## If you have the Generate Cover plugin installed, you can use the
## generate_cover_settings parameter to intelligently decide which GC
## setting to run.  There are three parts 1) a template of which
## metadata part(s) to look at, 2) a regular expression to match the
## template, and 3) the name of the GC setting to use, which must
## match exactly.  Use this parameter in [defaults], or by site eg,
## [ficwad.com]
## Make sure to keep at least one space at the start of each line and
## to escape % to %%, if used.
## template => regexp to match => GC Setting to use.
## To use this, make sure you go to the Generate Cover tab in FanFicFare
## config and check 'Allow generate_cover_settings from personal.ini
## to override'
## You can check for an existing cover image in the metadata
## cover_image.  cover_image can be:
## specific -- The site has an image that is specifically this story's cover
## first -- The first image in the story or story desc is used as cover
## default -- A default_cover_image was used
## old -- There was already a cover image in the epub.
## This is useful because GC plugin can use the existing image.
#generate_cover_settings:
# ${category} => Buffy:? [tT]he Vampire Slayer => BuffyCover
# ${category} => Star Trek => StarTrekCover
# ${cover_image} => => CompleteCover
# ${cover_image} => (specific|first|default) => CoverWithOrigImage
This says the plugin can check for existing images. But I don't really deal in covers, so, can't help more.

Edit: Oops, sorry for double-post.
Ascello is offline   Reply With Quote