Green Line Appears in Thumbnails in Photos but Not in Actual Photo

Hello,

I’ve encountered an issue where a green line appears only in the thumbnail view of an image in the iPhone photo gallery. The green line is not present in the actual image itself.

Here are some additional details:

•	The issue occurs only when saving the image as a JPEG. When saved as PNG, the green line does not appear.
•	The green line also shows up when using the PHAsset method requestImage(for:targetSize:). Depending on the targetSize, the resulting image may contain the green line.
•	Interestingly, this issue does not appear on iPhone Xs Max running iOS 15.2.1. However, the green line does appear on iPhone 15 Pro Max running iOS 18.0.1 when viewing the same image.

I have attached the problematic image for your reference.

Following images are the screen captures that shows the issue occurring on my iPhone.

iPhone 15 pro max (iOS 18.0.1)

iPhone Xs Max (iOS 15.2.1 )

Could this be related to a display or gallery app issue on iOS? Any advice or solutions would be greatly appreciated.

Thank you!

Do you still experience this green line issue on the latest iOS betas? If so could you file a feedback with the image and appropriate diagnostics?

When reproducing this issue yourself with the requestImage(for:targetSize:), what size and other parameters are you passing? Historically we've seen issues like the above when odd sizes are passed into various imaging APIs.

@Engineer

Hi, I tested this on iOS 18.1 (22B83) using an iPhone 15 Pro Max, and the green line issue still persists. (Should I also test on iOS 18.2 Beta?)

I configured the PHImageRequestOptions as follows: let requestOptions = PHImageRequestOptions() requestOptions.isNetworkAccessAllowed = true requestOptions.isSynchronous = false requestOptions.deliveryMode = .highQualityFormat requestOptions.resizeMode = .fast

I have set PHImageContentMode to .aspectFill and used 340 x 340 for the targetSize.

During my testing with various targetSize values, I found that the green line appears if the targetSize is set below approximately 370 x 370.

I am attaching one of the problematic images (Note: I am unable to attach ZIP files here. Please let me know if there is an alternative method to share the image).

If you need any additional information, please let me know.

Thanks!

Green Line Appears in Thumbnails in Photos but Not in Actual Photo
 
 
Q