GithubHelp home page GithubHelp logo

index out of range about bookbrowser HOT 8 CLOSED

pgaskin avatar pgaskin commented on May 28, 2024
index out of range

from bookbrowser.

Comments (8)

pgaskin avatar pgaskin commented on May 28, 2024

Hmm. So what does bookbrowser show in the web UI? Are the covers showing no cover, but the metadata is still there? Or are the books not showing at all?

Can you email me one of the bad books too so I can have a look?

from bookbrowser.

pgaskin avatar pgaskin commented on May 28, 2024

This issue may be related: nfnt/resize#58

I may have to look into using a different resizing library.

Maybe https://github.com/bamiaux/rez

from bookbrowser.

SR-G avatar SR-G commented on May 28, 2024

Sadly as said in the first post, the binary is just exiting in error (exit code 2), so there is of course no access to any UI as the process is not anymore running.

You are right about the resizing library being the culprit.
My guess would be to go for the libvips / bimg wrapper : https://github.com/h2non/bimg

Please find a .epub triggering the error here : http://dl.free.fr/mNcsrYQ39 (other than that, the .epub can be read without any problem through FBReader and cover is correctly displayed).

from bookbrowser.

pgaskin avatar pgaskin commented on May 28, 2024

OK, I'll work on fixing this ASAP. As for the wrapper libraries, I am trying to avoid ones using CGO, because it makes cross-compiling a PITA.

from bookbrowser.

pgaskin avatar pgaskin commented on May 28, 2024

This should be fixed now. Please try v3.0.4, and tell me if it works. Thanks for reporting this issue!

from bookbrowser.

pgaskin avatar pgaskin commented on May 28, 2024

Btw, the new image resizing library is 25% faster.

from bookbrowser.

SR-G avatar SR-G commented on May 28, 2024

Yep, way better now, no more errors / no more exits on a test folder with ~1000 epubs (whereas several ones were generating failures before). Covers seem to be correctly displayed.
Thanks for the correction.

from bookbrowser.

pgaskin avatar pgaskin commented on May 28, 2024

No problem!

from bookbrowser.

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.