Skip to content

[Feature Request]: Prevent automatically pulling the whole file from OneDrive #402

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
3 tasks done
orels1 opened this issue Aug 26, 2024 · 4 comments
Open
3 tasks done
Labels
Type: Enhancement New feature or request Type: File System File system interactions

Comments

@orels1
Copy link

orels1 commented Aug 26, 2024

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

Description

I've been looking for a nice solution to handle tagging of my photos, screenshots, and 3d modeling references for ages, and TagStudio is incredibly promising thus far.

The issue I encountered, however, is that I'm using OneDrive to offload some of the rarely used files into the cloud from my PC, and TagStudio's current thumbnail rendering is doing a full file pull at the moment.

I looked through issues, docs and discussions and only found a single mention of a "do not render thumbnails" option brought up in this PR by a person who seemingly had a similar issue. But it doesn't seem like that option is in the current release version of TagStudio.

For now I had to block the app from being able to pull files, just so it doesn't download hundreds of gigabytes of things during initial indexing. But it is not really a usable workaround.

Solution

If possible, TagStudio should leverage Windows APIs to pull the low res thumbnails similar to Explorer, in a OneDrive folder.

Alternatives

If its possible to detect files that aren't on disk (they report 0 bytes size on disk in file properties, maybe that can be leveraged) - an option to just skip rendering thumbnails for those files could be a useful interim workaround.

image

Extra notes

This is also relevant for other similar systems, e.g. Proton Drive

@orels1 orels1 added the Type: Enhancement New feature or request label Aug 26, 2024
@CyanVoxel CyanVoxel added the Type: File System File system interactions label Aug 26, 2024
@CyanVoxel
Copy link
Member

Disabling thumbnail rendering is an option I've been meaning to have. The disk size observation is a good call, that could make it easier to implement an additional "Disable thumbnail rendering on network/cloud drives" option so there's less need to go back and forth toggling it between local and non-local libraries. Leveraging the OS's APIs for thumbnails is also something that we've been meaning to explore for fallback options, but this is another good reason to look into them.

@rfletchr
Copy link

rfletchr commented Aug 27, 2024

@CyanVoxel rather than investing time writing code that tries to detect network drives, and cloud managed directories It might make sense to simply allow the user to provide a list of directories which will be ignored by thumbnail generation.

That way you have a very general purpose feature which gives people control, and it'll take less code.

The alternative is trying to write code that works for 3 platforms, and n number of cloud providers.

@orels1
Copy link
Author

orels1 commented Aug 27, 2024

The 0 bytes part would be a nice QoL component simply because you can have only some sub-folders synced via a cloud provider inside a single over-arching library, so you don't need to add every folder one by one to the ignore list.

But at the end of the day, having a way to do it would be better than not having any.

Although the best solution to all of this would be to fall back to the OS APIs for thumbnails. So then those files could still be searched through nicely.

@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
@aziddy
Copy link

aziddy commented Feb 12, 2025

This is the single bug preventing me from using TagStudio. I use both Google Drive and OneDrive Desktop Apps for both Windows and MacOS with a decent amount of photos (1TB+) on each Cloud Drive. I really can't have all my cloud pictures load onto my computer because it needs the full file to load thumbnails

So +1 👍 on this bug/enhancement from me

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Type: Enhancement New feature or request Type: File System File system interactions
Projects
None yet
Development

No branches or pull requests

6 participants
@orels1 @rfletchr @aziddy @CyanVoxel and others