A non-existent black line is shown by UIImageView in iOS / iPadOS 16

UIImageView seems to show a non-existent black line on the right or bottom side when trying to display the image file with the following attribues in iOS / iPadOS 16.2. This issue does not occur on iOS / iPadOS 15 and earlier.

Here are image file attributes when this happens:

  • Odd number of pixels, 129 pixels or more in width or height
  • 8 bit grayscale (NOT 24 bit color)

Has anyone had the same issue or knows a workaround?

Are you able to provide a sample project demonstrating the issue? I would recommend filing a feedback report and attaching the project to it.

Thank you for your reply. I uploaded the sample project to github at the following URL. https://github.com/gpn-galapagos/uiimageview_black_line_problem.git The JPEG image file that causes the problem is included as SampleImageFile/149x129.jpg.

Thank you for your reply. I uploaded the sample project to github at the following URL. https://github.com/gpn-galapagos/uiimageview_black_line_problem.git The JPEG image file that causes the problem is included as SampleImageFile/149x129.jpg.

Thank you for your reply. I uploaded the sample project to github at the following URL. "https://github.com/gpn-galapagos/uiimageview_black_line_problem.git" The JPEG image file that causes the problem is included as SampleImageFile/149x129.jpg.

Same here. But there is a little difference in the image that becomes an issue. 8-bit grayscale is the same, but the same issue occurs even if the number of pixels is even.

Thank you for your reply. I uploaded the sample project to github at the following URL. "https://github.com/gpn-galapagos/uiimageview_black_line_problem.git" The JPEG image file that causes the problem is included as SampleImageFile/149x129.jpg.

A non-existent black line is shown by UIImageView in iOS / iPadOS 16
 
 
Q