Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1076 from OpenBazaar/fixMobileImageUpload
Browse files Browse the repository at this point in the history
Fix Black Bar on Mobile Image Upload
  • Loading branch information
rmisio authored Oct 31, 2017
2 parents 58ce3b1 + 83da85c commit 612afd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/views/modals/editListing/EditListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ export default class extends BaseModal {
canvas.height = imgH;

this.getOrientation(photoFile, (orientation) => {
if (orientation > 4) {
canvas.width = imgH;
canvas.height = imgW;
}

switch (orientation) {
case 2:
ctx.translate(imgW, 0);
Expand Down

0 comments on commit 612afd6

Please sign in to comment.