How to crop image in freestyle(as user wants) while selecting from image picker in ios The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceUIImagePickerController dismissModalViewControllerUIImage loaded from NSData displays black only on new iPad 3accessing ext from UIImagePickerControllerReferenceURLUIImagePickerController delegate method not re-saving/overwriting new pictures takenUIImagePickerControllerEditedImage get nilCocos2d V3 can't switch scenes after using the UIImagePickerController ClassSwift encoding/decoding images for JSONHow to get image from UIImagePickerController and Pass to next VCWhy code inside ELCimagePickerController is not executed?Swift Error - Use of undeclared type 'cell' - Collection View
How did passengers keep warm on sail ships?
Did God make two great lights or did He make the great light two?
Sort a list of pairs representing an acyclic, partial automorphism
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
How to copy the contents of all files with a certain name into a new file?
I could not break this equation. Please help me
How to pronounce 1ターン?
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
Format single node in tikzcd
How do I add random spotting to the same face in cycles?
Why can't wing-mounted spoilers be used to steepen approaches?
Why is superheterodyning better than direct conversion?
Windows 10: How to Lock (not sleep) laptop on lid close?
Does Parliament hold absolute power in the UK?
How are presidential pardons supposed to be used?
Semisimplicity of the category of coherent sheaves?
Hiding Certain Lines on Table
Why does this iterative way of solving of equation work?
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
How does ice melt when immersed in water?
Can smartphones with the same camera sensor have different image quality?
Who or what is the being for whom Being is a question for Heidegger?
University's motivation for having tenure-track positions
What is this lever in Argentinian toilets?
How to crop image in freestyle(as user wants) while selecting from image picker in ios
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceUIImagePickerController dismissModalViewControllerUIImage loaded from NSData displays black only on new iPad 3accessing ext from UIImagePickerControllerReferenceURLUIImagePickerController delegate method not re-saving/overwriting new pictures takenUIImagePickerControllerEditedImage get nilCocos2d V3 can't switch scenes after using the UIImagePickerController ClassSwift encoding/decoding images for JSONHow to get image from UIImagePickerController and Pass to next VCWhy code inside ELCimagePickerController is not executed?Swift Error - Use of undeclared type 'cell' - Collection View
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
can any one help me in cropping image in freestyle as user wants.
I tried the below method, but its cropping image only in square shape.
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
if let image = info[UIImagePickerControllerEditedImage] as? UIImage
pickImage.image = image
let imageData:NSData = UIImageJPEGRepresentation(pickImage.image!, 0.5) as! NSData
if(imageData != nil)
// let imageStr1 = imageData.base64EncodedString(options: NSData.Base64EncodingOptions(rawValue: 0))
let imageStr1 = imageData.base64EncodedString(options: NSData.Base64EncodingOptions.lineLength64Characters)
imageStr = "data:image/png;base64,(imageStr1))"
dismiss(animated: true, completion: nil)
Please try to answer me with apple default methods, if available.
Thanks in advance.
ios swift uiimage uiimagepickercontroller crop
add a comment |
can any one help me in cropping image in freestyle as user wants.
I tried the below method, but its cropping image only in square shape.
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
if let image = info[UIImagePickerControllerEditedImage] as? UIImage
pickImage.image = image
let imageData:NSData = UIImageJPEGRepresentation(pickImage.image!, 0.5) as! NSData
if(imageData != nil)
// let imageStr1 = imageData.base64EncodedString(options: NSData.Base64EncodingOptions(rawValue: 0))
let imageStr1 = imageData.base64EncodedString(options: NSData.Base64EncodingOptions.lineLength64Characters)
imageStr = "data:image/png;base64,(imageStr1))"
dismiss(animated: true, completion: nil)
Please try to answer me with apple default methods, if available.
Thanks in advance.
ios swift uiimage uiimagepickercontroller crop
You can pick one of these from here cocoacontrols.com/search?q=crop
– Dharmesh
Mar 8 at 13:33
use this library cocoacontrols.com/controls/mdimagecroper
– AtulParmar
Mar 8 at 13:37
I need in swift not objective-C
– gontla siva sai rakesh
Mar 11 at 4:39
add a comment |
can any one help me in cropping image in freestyle as user wants.
I tried the below method, but its cropping image only in square shape.
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
if let image = info[UIImagePickerControllerEditedImage] as? UIImage
pickImage.image = image
let imageData:NSData = UIImageJPEGRepresentation(pickImage.image!, 0.5) as! NSData
if(imageData != nil)
// let imageStr1 = imageData.base64EncodedString(options: NSData.Base64EncodingOptions(rawValue: 0))
let imageStr1 = imageData.base64EncodedString(options: NSData.Base64EncodingOptions.lineLength64Characters)
imageStr = "data:image/png;base64,(imageStr1))"
dismiss(animated: true, completion: nil)
Please try to answer me with apple default methods, if available.
Thanks in advance.
ios swift uiimage uiimagepickercontroller crop
can any one help me in cropping image in freestyle as user wants.
I tried the below method, but its cropping image only in square shape.
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
if let image = info[UIImagePickerControllerEditedImage] as? UIImage
pickImage.image = image
let imageData:NSData = UIImageJPEGRepresentation(pickImage.image!, 0.5) as! NSData
if(imageData != nil)
// let imageStr1 = imageData.base64EncodedString(options: NSData.Base64EncodingOptions(rawValue: 0))
let imageStr1 = imageData.base64EncodedString(options: NSData.Base64EncodingOptions.lineLength64Characters)
imageStr = "data:image/png;base64,(imageStr1))"
dismiss(animated: true, completion: nil)
Please try to answer me with apple default methods, if available.
Thanks in advance.
ios swift uiimage uiimagepickercontroller crop
ios swift uiimage uiimagepickercontroller crop
edited Mar 8 at 16:46
AtulParmar
1,445624
1,445624
asked Mar 8 at 13:31
gontla siva sai rakeshgontla siva sai rakesh
41
41
You can pick one of these from here cocoacontrols.com/search?q=crop
– Dharmesh
Mar 8 at 13:33
use this library cocoacontrols.com/controls/mdimagecroper
– AtulParmar
Mar 8 at 13:37
I need in swift not objective-C
– gontla siva sai rakesh
Mar 11 at 4:39
add a comment |
You can pick one of these from here cocoacontrols.com/search?q=crop
– Dharmesh
Mar 8 at 13:33
use this library cocoacontrols.com/controls/mdimagecroper
– AtulParmar
Mar 8 at 13:37
I need in swift not objective-C
– gontla siva sai rakesh
Mar 11 at 4:39
You can pick one of these from here cocoacontrols.com/search?q=crop
– Dharmesh
Mar 8 at 13:33
You can pick one of these from here cocoacontrols.com/search?q=crop
– Dharmesh
Mar 8 at 13:33
use this library cocoacontrols.com/controls/mdimagecroper
– AtulParmar
Mar 8 at 13:37
use this library cocoacontrols.com/controls/mdimagecroper
– AtulParmar
Mar 8 at 13:37
I need in swift not objective-C
– gontla siva sai rakesh
Mar 11 at 4:39
I need in swift not objective-C
– gontla siva sai rakesh
Mar 11 at 4:39
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55064272%2fhow-to-crop-image-in-freestyleas-user-wants-while-selecting-from-image-picker%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55064272%2fhow-to-crop-image-in-freestyleas-user-wants-while-selecting-from-image-picker%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can pick one of these from here cocoacontrols.com/search?q=crop
– Dharmesh
Mar 8 at 13:33
use this library cocoacontrols.com/controls/mdimagecroper
– AtulParmar
Mar 8 at 13:37
I need in swift not objective-C
– gontla siva sai rakesh
Mar 11 at 4:39