Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days 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 (about 14 years ago)
- Default Branch: master
- Last Pushed: 2015-10-12T11:46:21.000Z (over 9 years ago)
- Last Synced: 2025-02-17T06:19:53.143Z (4 days ago)
- Language: Objective-C
- Homepage:
- Size: 197 KB
- Stars: 353
- Watchers: 18
- 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.