Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

(Feature request) Copy-pasting an image from Google Photos creates image note with extremely long note name and #originalFileName #2307

Closed
1 task done
agentydragon opened this issue Nov 4, 2021 · 0 comments

Comments

@agentydragon
Copy link
Sponsor Contributor

Preflight Checklist

  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe feature

Follow these steps:

  1. open Google Photos, open any photo
  2. right click on photo, click Copy Image
  3. open Trilium, paste image
  4. open the note of the new image

In Google Photos, the URL of a displayed image has 788 charatecters:

image

Trilium copies the filename part into the name and #originalFileName of the note it creates for that image:

image

This extremely long randomly and probably randomly generated/otherwise gibberish filename is not useful, and it's annoying to have to remove / rename it manually.

I would recommend just adding some logic like "if filename length > small constant, then truncate or replace with just 'pasted image'"

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant