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 a bug where uploaded images could have the wrong aspect ratio in the timeline. #3435

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Oct 21, 2024

As part of the refactor in #3412 I made the image size calculations always come from the CGImageSource. This introduced a bug where if we hadn't just scaled the image the orientation wasn't taken into account.

This PR fixes that and adds a test too.

@pixlwave pixlwave requested a review from a team as a code owner October 21, 2024 09:58
@pixlwave pixlwave requested review from Velin92 and removed request for a team October 21, 2024 09:58
Copy link

github-actions bot commented Oct 21, 2024

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.

Generated by 🚫 Danger Swift against d1ebd0a

@pixlwave pixlwave added the pr-bugfix for bug fix label Oct 21, 2024
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 88.67925% with 6 lines in your changes missing coverage. Please review.

Project coverage is 77.74%. Comparing base (bd4ecdd) to head (d1ebd0a).
Report is 4 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ests/Sources/MediaUploadingPreprocessorTests.swift 84.61% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3435      +/-   ##
===========================================
- Coverage    77.78%   77.74%   -0.04%     
===========================================
  Files          738      738              
  Lines        60626    60677      +51     
===========================================
+ Hits         47157    47175      +18     
- Misses       13469    13502      +33     
Flag Coverage Δ
unittests 69.21% <88.67%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Oct 21, 2024

@pixlwave pixlwave merged commit 201e3b0 into develop Oct 21, 2024
11 checks passed
@pixlwave pixlwave deleted the doug/thumbnail-orientation branch October 21, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix for bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants