MediaEditor-iOS icon indicating copy to clipboard operation
MediaEditor-iOS copied to clipboard

Filers: Image appears skewed after applying filter.

Open aerych opened this issue 5 years ago • 0 comments

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,

aerych avatar Feb 10 '20 20:02 aerych