Giter VIP home page Giter VIP logo

Comments (5)

albertofustinoni avatar albertofustinoni commented on August 27, 2024

That's because in that case the first page is set as the cover, and not all epub readers display it when reading (will show up in the library screen instead).

from cpublib.

wizo06 avatar wizo06 commented on August 27, 2024

I've tried both scenarios

./CPubMake -d "firstvolume" -o "output.epub"
./CPubMake -d "firstvolume" -c "firstvolume/001.jpg" -o "output.epub"

And in both scenarios, the first image of the folder is skipped. Is this intended?

from cpublib.

albertofustinoni avatar albertofustinoni commented on August 27, 2024

Try extracting the generated epub (they are just zip files with a different extension), then check in OBEPS folder: is Cover.jpg the first page you are missing?

from cpublib.

wizo06 avatar wizo06 commented on August 27, 2024

That is correct. I extracted both generated epub files, and checked their respective Cover.jpg. They're both the first page that's missing.

It seems like CPubMake implicitly uses the first image of the folder as the cover (if -c flag is not provided), and the cover image is not included as the first page of the epub. Is this an intended feature?

If so, maybe a workaround for me is to make a copy of the first image 001.jpg as 000.jpg. This way, 000.jpg will be used as cover, and 001.jpg will still be included as the first page of the epub.

from cpublib.

albertofustinoni avatar albertofustinoni commented on August 27, 2024

Yes, that is an intended feature. In general, the cover is not meant to be also the firts page of an ebook: if people author books with wide images for two pages spreads adding an extra pages messes everything up.

For your situation, you can use the workaround you mentioned.

from cpublib.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.