wordpress-mobile / wordpress-mobile/MediaEditor-iOS

Filers: Image appears skewed after applying filter.

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
54
Forks
6
Avg merge
8h 43m
Merged PRs (30d)
5

Description

Expected behavior

To apply a filter to an image, and see the filtered image with the same aspect ratio and not skewed.

Actual behavior

Applying a filter (in the iPhone X simulator) results in the filtered image appearing skewed, as if the UIImageView displaying the image had its content mode set to fill vs aspect-fit.

Steps to reproduce the behavior

Choose to edit a UIImage (I also reproduced with remote images).
Simulator Screen Shot - iPhone X - 2020-02-10 at 13 51 32

Select the filter option.
Simulator Screen Shot - iPhone X - 2020-02-10 at 13 51 53

Apply a filter like Sepia
Simulator Screen Shot - iPhone X - 2020-02-10 at 13 51 58

Observe the image is now skewed.
Simulator Screen Shot - iPhone X - 2020-02-10 at 13 52 02

Bonus, rotate the device and notice how the image stretches. This is what has me thinking about the content mode.
Simulator Screen Shot - iPhone X - 2020-02-10 at 13 52 13

Tested on [device], iOS [version], WPiOS [version]

iPhone X Simulator,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Reproduce the filter flow in the iPhone X simulator, including device rotation, then trace the image display path to compare the pre-filter and post-filter aspect ratios. Done means filtered images retain their aspect ratio and do not stretch after rotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.