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

Encode pasted images to jpegs #560

Merged
merged 1 commit into from
May 20, 2020

Conversation

ghost
Copy link

@ghost ghost commented May 19, 2020

Pasting images results in multi megabyte png images which bloats the database. I've added JPEG encoding to all paste operations which encodes to 75% quality. It's a bit slow since it's all in javascript, but I've added a loading indicator which hopefully helps. For my test case it turns a 10MB png into a 730KB jpg.

@WithoutPants WithoutPants added the improvement Something needed tweaking. label May 19, 2020
@WithoutPants WithoutPants added this to the Version 0.2.0 milestone May 19, 2020
@WithoutPants WithoutPants merged commit 5c68c70 into stashapp:develop May 20, 2020
Tweeticoats pushed a commit to Tweeticoats/stash that referenced this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something needed tweaking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants