Invalid multi-frame GIF file using CGImageDestinationCreateWithURL

Originator:Reflejo
Number:rdar://24201495 Date Originated:01/14/2016
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification: Reproducible:Always
 
Summary:
Under some conditions, when creating a multi-frame GIF file using CGImageDestinationCreateWithURL(.., kUTTypeGIF) results on wrong pixel information.

Steps to Reproduce:
Run the attached script -- https://gist.github.com/Reflejo/8e74290d4dc398bebe0b

Expected Results:
The expected result should says "HI" in white. See attached GIFs.

Actual Results:
The second frame contains a white line on the bottom (carried from the 1st frame)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!