Skip to content
Category to add some resizing methods to the UIImage class, to resize it to a given CGRect — or fit in a CGRect keeping aspect ratio
Objective-C
Find file
Pull request Compare This branch is 6 commits behind AliSoftware:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Example
.gitattributes
.gitignore
LICENSE
README
UIImage+Resize.h
UIImage+Resize.m

README

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*)resizedImageWithSize:(CGSize*)size;
	-(UIImage*)resizedImageToFitInSize:(CGSize*)size resizeIfSmaller:(BOOL)resizeIfSmaller;

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

Something went wrong with that request. Please try again.