-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fixes width/height extraction with respect to exif orientation tag #14996
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@alexxxwork please let us know when PR is ready for review. |
Seems like a don't have enough rights to request review from specific persons. Should I just mention desired reviewers @mountiny @0xmiroslav? The PR is ready for review |
@alexxxwork I believe you didn't comment like this. Can you share your screenshot on editing state? |
Do you mean that mention in comment above details header?
|
@alexxxwork ok so that's the issue. Automation didn't work because you didn't follow template. - $ [#14448](https://github.com/Expensify/App/issues/14448)
+ $ https://github.com/Expensify/App/issues/14448 I understand this is your first PR but from next job, please follow template correctly. |
🤦 Thought that this automation worked correctly as long as the link to PR appeared in the issue. |
@0xmiroslav should I recreate this PR to trigger correct assignment? |
As I said, no need anymore for this PR. But don't repeat the same mistake from next PR for the next job. |
Co-authored-by: Miroslav Stevanovic <[email protected]>
Typo in Tests step: |
@alexxxwork no problem as @0xmiroslav mentioned the issue needs to be linked exactly as the template says to make this work. Can you also fill out the details section with some summary of what are we doing here? Also will we make an upstream PR? |
@0xmiroslav oh sorry, thanks for the link! Thank you 🙇 |
@mountiny updated details |
Co-authored-by: Miroslav Stevanovic <[email protected]>
@alexxxwork please replace with this file and commit again |
Seems to be ok now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far!
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.mp4Mobile Web - Safarimsafari.mp4Desktopdesktop.moviOSios.mp4AndroidBefore: android-old.movAfter: android.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xmiroslav I do appreciate your thorough testing here!
@alexxxwork Congratulations, you first PR done, onwards and upwards 😍
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.2.70-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/mountiny in version: 1.2.70-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.2.70-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.2.70-1 🚀
|
Details
Expensify uses react-native-fast-image and added a patch to be able to get dimensions of the image displayed in the component on an onLoad event. But this method doesn't work correctly with images that have an exif property of image orientation. In such cases image is displayed properly (rotated according to the exif orientation flag) but dimensions returned from react-native-fast-image component are wrong (width/height swapped).
To resolve this propblem we should add an exif reader to get orientation tag and correct dimensions in such cases.
Fixed Issues
$ #14448
$ #14448 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android