yackle / CLImageEditor

MIT License
2.21k stars 574 forks source link

Distorted custom sticker images #206

Closed albertbori closed 6 years ago

albertbori commented 6 years ago

screen shot 2017-12-18 at 4 38 30 pm

In CLSTickerTool.m, in setStickerMenu, the line view.iconImage = [image aspectFit:CGSizeMake(50, 50)]; causes the sticker to attempt to be aspect Fit, but in CLToolbarMenuItem, the iconImageView is set to UIViewContentModeScaleAspectFill, which causes the stickers that are not perfectly square to be pixelated and clipped as in the image above.

yackle commented 6 years ago

Merged #207, thanks!