Giter Site home page Giter Site logo

When -i/--hide-info-box is set the info-box still displays for a split second when scrolling through multiple images. about pqiv HOT 10 CLOSED

phillipberndt avatar phillipberndt commented on June 21, 2024
When -i/--hide-info-box is set the info-box still displays for a split second when scrolling through multiple images.

from pqiv.

Comments (10)

phillipberndt avatar phillipberndt commented on June 21, 2024

This is intentional: pqiv preloads the next and previous images into memory to allow you to switch between images quickly. If for some reason an image hasn't fully loaded yet when a user requests to switch to it, the info box is used to inform him that the "(Image is still loading)". As soon as loading is completed, the image is displayed and the info box is removed again. Typical reasons for delayed loading include very large images, slow disk/network I/O, high processor load, but of course also mashing the spacebar ;-)

If you want, I can add a command line option to deactivate this behaviour!?

from pqiv.

CamilleScholtz avatar CamilleScholtz commented on June 21, 2024

You are right it says: (Image is still loading). However it displays it only for like 0.05 seconds making it kinda useless. I think a command line option to disable it would be very nice!

from pqiv.

phillipberndt avatar phillipberndt commented on June 21, 2024

Maybe it suffices to delay the message for half a second (see 5b13d5b / the delay-info branch)?!

from pqiv.

CamilleScholtz avatar CamilleScholtz commented on June 21, 2024

I just tried the branch and it is much much better in my opinion.

from pqiv.

phillipberndt avatar phillipberndt commented on June 21, 2024

Great; merged to master.

from pqiv.

TommyFlowers avatar TommyFlowers commented on June 21, 2024

When running on something like a raspberry pi, the delay of 0.5 seconds is often still not enough. Would it be possible to add an option to force the info box off in that case? Many thanks!

from pqiv.

phillipberndt avatar phillipberndt commented on June 21, 2024

Would an even larger delay suffice, or do you really need to have no info box whatsoever?

from pqiv.

TommyFlowers avatar TommyFlowers commented on June 21, 2024

No info box whatsoever would be ideal, but if not a larger delay would likely work. Trouble is it just depends on the size of the image file.

from pqiv.

phillipberndt avatar phillipberndt commented on June 21, 2024

Here's the simple solution: --hide-info-box now hides the "Image still loading" message as well. If someone complains, I'll add an option to configure this.

from pqiv.

TommyFlowers avatar TommyFlowers commented on June 21, 2024

Perfect - many thanks

from pqiv.

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.