https://github.com/alisoftware/uiimage-resize
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
https://github.com/alisoftware/uiimage-resize
Last synced: 3 months ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/alisoftware/uiimage-resize
- Owner: AliSoftware
- License: other
- Created: 2011-01-15T20:12:39.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2015-10-12T11:46:21.000Z (over 9 years ago)
- Last Synced: 2025-03-29T13:11:15.672Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 197 KB
- Stars: 353
- Watchers: 17
- Forks: 74
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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 :
``` objective-c
-(UIImage*)resizedImageToSize:(CGSize*)size;
-(UIImage*)resizedImageToFitInSize:(CGSize*)size scaleIfSmaller:(BOOL)scale;
```This methods takes correctly the imageOrientation / EXIF orientation into account.