Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

initWithImage:mandatoryCropPresets method not found #28

Open
NehaKushwah993 opened this issue May 19, 2017 · 5 comments
Open

initWithImage:mandatoryCropPresets method not found #28

NehaKushwah993 opened this issue May 19, 2017 · 5 comments

Comments

@NehaKushwah993
Copy link

Hi,

I am using iOS SDK 0.15 version of CreativeSDK, and I want to ensure that the images created in the editor are of a specific aspect ratio, as given in docs : https://github.com/CreativeSDK/ios-getting-started-samples/blob/master/Image%20Editor%20UI%20Component/Guide/Guide.md#mandatory-crop

But in sample app XCode is unable to find this AdobeImageEditorCropPreset class and initWithImage:mandatoryCropPresets method.

Please let me know if I am missing any framework.

Thanks

@NehaKushwah993 NehaKushwah993 changed the title mandatoryCropPresets:presets method not found initWithImage:mandatoryCropPresets method not found May 19, 2017
@Twinkle24IT
Copy link

Hi @NehaKushwah993
Did you found any solution for the above issue. If yes than please let me know. I am also facing same issue in my project.

Thanks

@NehaKushwah993
Copy link
Author

I used following for :

Square :


AdobeImageIntent.ForceCrop forceCropSettings = new AdobeImageIntent.ForceCrop.Builder().addCropRatio("Square", "1:1").withSelectedIndex(0).canInvert(true).build();
Intent imageEditorIntent = new AdobeImageIntent.Builder(getContext()).setData(imageUri).forceCrop(forceCropSettings).build();

for Ratio :


AdobeImageIntent.ForceCrop forceCropSettings = new AdobeImageIntent.ForceCrop.Builder().addCropRatio("2:3", "2:3").withSelectedIndex(0).canInvert(true).build();
Intent imageEditorIntent = new AdobeImageIntent.Builder(getContext()).setData(imageUri).forceCrop(forceCropSettings).build();

and then called it
(getActivity()).startActivityForResult(imageEditorIntent, ConstantsInteractivity.EDIT_IMAGE_FROM_ADOBE);

@Twinkle24IT
Copy link

Hi @NehaKushwah993
Thanks for quick reply . but i cant found AdobeImageIntent in adobe library. I am using iOS_SDK. i think it is android syntax. If possible than can you please share iOS code?

Thanks

@NehaKushwah993
Copy link
Author

NehaKushwah993 commented Sep 17, 2018 via email

@Twinkle24IT
Copy link

Twinkle24IT commented Sep 19, 2018

Hi @NehaKushwah993
Thanks for your reply but there is nothing found similar to android solution in iOS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants