Giter Site home page Giter Site logo

Comments (9)

belldandu avatar belldandu commented on June 27, 2024

I will look into this a bit later.

Some pages appear to have the smaller cover and the wide cover within the novel illustrations while others do not. Sure this can be fixed easily once imageInfo.isCover is actually set to true somewhere.

Aside from that i think this will be fairly easy to implement a simple check for if a smaller cover already exists for the book. (only issue here is inconsistent file names)

And of course url support for the cover if you find one on the net when there isn't one on the site your getting the book from.

from webtoepub.

belldandu avatar belldandu commented on June 27, 2024

At this point after extensively looking into this. The best option would be to provide an option for a custom cover url. This url should be passed into the images array like the rest of the images however so that all the checks can go through.

I will be making a seperate pull request from #10 to do this.

from webtoepub.

dteviot avatar dteviot commented on June 27, 2024

Initial version implemented in version 0.0.0.9.
Needs more work for extracting the file name from the supplied URL. Some cases don't work.
There are three cases for Baka Tsuki images.

Only the first one works correctly.

from webtoepub.

belldandu avatar belldandu commented on June 27, 2024

@dteviot I recommend using this http://blog.teamtreehouse.com/reading-files-using-the-html5-filereader-api here https://github.com/dteviot/WebToEpub/blob/sonako/plugin/js/parsers/ImageCollector.js#L306 to get the image name and type from the file itself along with its width and height.

I've added myself to assignees for this as well.

from webtoepub.

belldandu avatar belldandu commented on June 27, 2024

Using the filereader api will also get rid of the need for complex regex's that might fail under certain conditions.

from webtoepub.

belldandu avatar belldandu commented on June 27, 2024

The above might be a bad idea though. I am still looking into other options.

from webtoepub.

dteviot avatar dteviot commented on June 27, 2024

@belldandu
This works for the failing cases, but it's kind of ugly. fc13f84
I guess it will do for the moment.

from webtoepub.

dteviot avatar dteviot commented on June 27, 2024

I'm going to call this done.

from webtoepub.

belldandu avatar belldandu commented on June 27, 2024

Yeah seems to work for now.

from webtoepub.

Related Issues (20)

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.