Giter Site home page Giter Site logo

Comments (2)

chaoscreater avatar chaoscreater commented on August 11, 2024

Came up with my own solution!

I created a userscript (with the help of ChatGPT) to modify the elements on the page. To use this, just download something like ViolentMonkey or Tampermonkey and load this userscript:

https://pastebin.com/eZYxmhj6

Note that the match is set to https://*:8080/files/DCIM/*. If you're using a different port for your HTTP File Server, then change it to use that port. The script basically kicks in whenever you browse to the DCIM folder on your HTTP File Server.

The script sets the default zoom level on the images to 100%, which is much bigger than the default zoom level. It also gives you an option to adjust the zoom level using the slider at the bottom left, or you can set the zoom % in the text box. These settings will be saved even if the page is refreshed.

The preview tickbox can be used to toggle between the preview lower quality images, or the original image. By default, HTTP File Server display preview quality image, which I don't like. I think the main reason for this is for speed & performance. If you have thousands of images, then loading the original quality will make the page slow. You can toggle between preview and no-preview and the images will update accordingly.

P.S - I'm not a developer at all, I barely know Javascript. ChatGPT did most of the heavy lifting, so please don't expect me to update the code or whatever, I'm just sharing this as I found it useful and thought it might help someone.

image

from warpinator-android.

slowscript avatar slowscript commented on August 11, 2024

Hi,

In case you have any further questions or suggestions, there is an email listed on the about page of HTTP File Server (near the bottom) as well as on the Google Play page.

Having bigger preview images is on my to-do list, as well as implementing a gallery view that allows browsing the images on full screen in chronological order. Thank you for the suggestion on how the previews might behave. Your script looks nice, especially considering it was made using ChatGPT. I will probably add a setting for preview quality into the app settings instead of web UI though, so you can have bigger and less pixelated previews while still saving bandwidth.

I'm closing this issue because it is unrelated to the project, but I will still post an update here when your request gets implemented.

from warpinator-android.

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.