![]() Custom 'opening' and 'dismissal' animations.A custom animation and layout when the device is rotated to landscape mode.The choice of having the controller return the cropped image to a delegate, or immediately pass it to a UIActivityViewController.iOS 7/8 translucency to make it easier to view the cropped region.A reset button to completely undo all changes.Clamp the crop box to a specific aspect ratio.Optionally, crop circular copies of images.Crop images by dragging the edges of a grid overlay.Looking for something more? If TOCropViewController doesn't meet your exact requirements, please consider IMG.LY with video editing and photo filter capabilities instead! (Disclaimer: Affiliate Link) Features It has been designed with the iOS Photos app editor in mind, and as such, behaves in a way that should already feel familiar to users of iOS.įor Swift developers, CropViewController is a Swift wrapper that completely encapsulates TOCropViewController and provides a much more native, Swiftier interface. It is excellent for things like editing profile pictures, or sharing parts of a photo online. Optional base64 selected file representationĮxtracted exif data from image.TOCropViewController is an open-source UIViewController subclass to crop out sections of UIImage objects, as well as perform basic rotations. Selected image MIME type (image/jpeg, image/png) Selected images' source path, do not have write access Selected images' localidentifier, used for PHAsset searching This is null when the writeTempFile option is set to false. ![]() NOTE: Some of these types may not be available on all iOS versions. Whether to enable rotating the image by hand gesture Whether to show crop frame during cropping Whether to show the 3x3 grid on top of the image during cropping This will also convert any Live Photo into its JPG representation String (default 'none', supported values: 'asc', 'desc', 'none')Īpplies a sort order on the creation date on how media is displayed within the albums/detail photo views when opening the image picker Whether to show the number of selected assets Text displayed while photo is loading in pickerĪccepted mediaType for image selection, can be one of: 'photo', 'video', or 'any' On iOS, values larger than 0.8 don't produce a noticeable quality increase in most images, while a value of 0.8 will reduce the file size by about half or less compared to a value of 1. Please note that not all Android devices handle this parameter, see issue #1058Ĭhoose which preset will be used for video compressionĬompress image with quality (from 0 to 1, where 1 is best quality). Whether to default to the front/'selfie' camera when opened. Promise will resolve/reject once ViewController completion block is calledĪrray ( supported values) (default ) ![]() Max number of files to select when using multiple option Min number of files to select when using multiple option When cropping image, disables the color setters for cropping library. When cropping image, determines the title of Toolbar.Įnable or disable circular cropping mask.ĭisableCropperColorSetters (android only) When cropping image, determines the color of Toolbar text and buttons.Įnables user to apply custom rectangle area for cropping When cropping image, determines the color of Toolbar. When cropping image, determines the color of StatusBar. ![]() When cropping image, determines ActiveWidget color. When set to true, the image will always fill the mask space. Hint: To use this string as an image source, use it like: When set to true, the image file content will be available as a base64-encoded string in the data property. This is useful to improve performance when you are retrieving file contents with the includeBase64 option and don't need to read files from disk. When set to false, does not write temporary files for the selected images. Height of result image when used with cropping optionĮnable or disable multiple image selection Width of result image when used with cropping option
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |