yackle / CLImageEditor

MIT License
2.22k stars 574 forks source link

Smooth lines and edges in texts etc. #132

Open boxidilshan opened 8 years ago

boxidilshan commented 8 years ago

Is there anything we can do for making lines and edges smooth for texts, photos etc. May be atleast to increase the resolution so that it wont be hardly visible for usesrs?

http://stackoverflow.com/questions/36160773/smooth-edges-in-uilabel

yackle commented 8 years ago

The simplest way is to set MAX_FONT_SIZE larger. But this way might be heavy.

boxidilshan commented 8 years ago

final Thank you. It is better now. However the final image when I zoom still I see pixels. Is there anyway I can sharpen this or output in higher resolution? Tried increasing scale factor in UIGraphicsBeginImageContextWithOptions but issue still exist.

boxidilshan commented 8 years ago

Added _label.layer.shouldRasterize = YES; and it improved a bit as well. For stickers I think I have to use high resolution images? Even after these improvements I see pixels as above. Is there anyway I can try to make it similar to Vector?

emiliomarin commented 7 years ago

@boxidilshan Did you get it to work with vector images?