Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Category to add some resizing methods to the UIImage class, to resize it to a given CGSize — or fit in a CGSize keeping aspect ratio
Objective-C
branch: master

Merge pull request #12 from drmonkeysee/nullcontext-fix

return nil if ui cgcontext comes out NULL
latest commit da3b80ab0e
@AliSoftware authored

README.md

This category allows you to resize an UIImage at a constraint size, or proportionally so that it fits in a given CGSize.

This category defines the following methods :

-(UIImage*)resizedImageToSize:(CGSize*)size;
-(UIImage*)resizedImageToFitInSize:(CGSize*)size scaleIfSmaller:(BOOL)scale;

This methods takes correctly the imageOrientation / EXIF orientation into account.

Something went wrong with that request. Please try again.