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

Allow attachment manipulation #4211

Open
oslavq opened this issue Dec 18, 2024 · 3 comments
Open

Allow attachment manipulation #4211

oslavq opened this issue Dec 18, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@oslavq
Copy link

oslavq commented Dec 18, 2024

Describe the solution you'd like

It would be great fi i could modify attachments when using Local file sytsem for object storage myself using external tools (for example to compress videos that are too big), but it would cause issues because there is size column in resource table in memos database.

I want an option to scan object storage and change size fields for objects that changed this property, so modifying the files would not leave stale size property in the database

Type of feature

Other

Additional context

Object storage can take up a lot of space, especially if you are uploading uncompressed videos and images, and sometimes you just need to modify the attachment.

Compressing media before each upload can be time consuming, i would rather to run a bulk compress script on object storage directory.

@oslavq oslavq added the enhancement New feature or request label Dec 18, 2024
@RoccoSmit
Copy link
Contributor

@oslavq, can you compress the video outside of memos and upload (either as a new or edited memo)?

@oslavq
Copy link
Author

oslavq commented Dec 22, 2024

@oslavq, can you compress the video outside of memos and upload (either as a new or edited memo)?

Of course that is possible, but as I mentioned, i want to automate compression.

@RoccoSmit
Copy link
Contributor

RoccoSmit commented Dec 22, 2024

I'm assuming you are coding your compression automation. if so, have a look at the resources section of the Memos API. You should be able to push your modified media to the server using the API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants