macmillanpublishers / covermaker

Automated creation of cover image files
0 stars 1 forks source link

Create epubtitlepage.jpg for all books #14

Closed nelliemckesson closed 8 years ago

nelliemckesson commented 8 years ago

Use bookmaker_titlepage.rb to create an epubtitlepage image for all books that do not already have a titlepage or epubtitlepage image.

Adjust this line to rename the file epubtitlepage: https://github.com/macmillanpublishers/covermaker/blob/master/bookmaker_titlepage.rb#L33

Adjust this IF statement to check for existence of BOTH titlepage and epubtitlepage, and only generate an epubtitlepage if neither file exists: https://github.com/macmillanpublishers/covermaker/blob/master/bookmaker_titlepage.rb#L87

You may want to walk through the code with me, since I didn't do a great job of adding useful commenting -- just let me know.

You'll also need to add bookmaker_titlepage.rb to the deployment scripts once this is done.

nelliemckesson commented 8 years ago

The fix to line 33 is done (see #15 )

nelliemckesson commented 8 years ago

I believe this should be all set! Updated bookmaker_titlepage.rb to check for existence of user-submitted POD and EPUB titlepages, and use those first, and then create just an EPUB titlepage if not found; then updated all deploy scripts to use bookmaker_titlepage.rb.