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

fix: make sure we scale image before trying to compress it #2887

Merged
merged 7 commits into from
Mar 27, 2024

Conversation

Bilb
Copy link
Collaborator

@Bilb Bilb commented Aug 28, 2023

looks like the scaling of images was broken and so we were compressing the original picture, to the desired size (kb) but keeping it's original width and height. Which meant we were compressing them way too much
fixing this:
image
to be this:
image

ts/util/attachmentsUtil.ts Outdated Show resolved Hide resolved
ts/util/attachmentsUtil.ts Outdated Show resolved Hide resolved
ts/util/attachmentsUtil.ts Outdated Show resolved Hide resolved
@Bilb Bilb force-pushed the fix-resize-images-thumbnail branch from 32ac567 to 1b73112 Compare August 28, 2023 01:18
Copy link
Collaborator

@yougotwill yougotwill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Bilb Bilb changed the base branch from clearnet to unstable October 16, 2023 03:05
@Bilb
Copy link
Collaborator Author

Bilb commented Oct 16, 2023

just tagging @burtonemily for tracking

@Bilb Bilb force-pushed the fix-resize-images-thumbnail branch from 5cee62e to 91dfad5 Compare October 16, 2023 05:23
@Bilb Bilb force-pushed the fix-resize-images-thumbnail branch from 91dfad5 to 29185c1 Compare October 16, 2023 05:28
@burtonemily
Copy link
Collaborator

Found some issues https://optf.atlassian.net/browse/SES-1244

@Bilb Bilb force-pushed the fix-resize-images-thumbnail branch from 5c6c0e7 to 095a9d3 Compare March 20, 2024 22:43
ts/util/attachmentsUtil.ts Outdated Show resolved Hide resolved
ts/util/attachmentsUtil.ts Outdated Show resolved Hide resolved
@Bilb Bilb force-pushed the fix-resize-images-thumbnail branch from b75b9f1 to 0b55175 Compare March 21, 2024 00:25
Copy link
Collaborator

@yougotwill yougotwill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚢

@Bilb Bilb merged commit 0ad6298 into oxen-io:unstable Mar 27, 2024
6 checks passed
@Bilb Bilb deleted the fix-resize-images-thumbnail branch May 27, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants