Comments (7)
OK. Do you mean the aspect ratio?
from climageeditor.
Yeah it would be great if custom, ratios and portrait/landscape buttons were optional :-)
from climageeditor.
I get it. I'll try.
from climageeditor.
Customizing for the clipping tool is implemented in develop branch.
Usage:
NSArray *ratios = @[
@{@"value1":@0, @"value2":@0, @"titleFormat":@"Custom"}, // if either value is zero, free form is set.
@{@"value1":@1, @"value2":@1, @"titleFormat":@"%.1f : %.1f"},
@{@"value1":@1, @"value2":@1.618, @"titleFormat":@"%g : %g"},
@{@"value1":@2, @"value2":@3},
@{@"value1":@3, @"value2":@2},
];
CLImageToolInfo *tool = [editor.toolInfo subToolInfoWithToolName:@"CLClippingTool" recursive:NO];
tool.optionalInfo[@"ratios"] = ratios;
tool.optionalInfo[@"swapButtonHidden"] = @YES;
How does that sounds?
from climageeditor.
Wow
Looks great
from climageeditor.
Just tried it with
NSArray *ratios = @[
@{@"value1":@1, @"value2":@1, @"titleFormat":@"%.1f : %.1f"},
];
CLImageToolInfo *tool = [editor.toolInfo subToolInfoWithToolName:@"CLClippingTool" recursive:NO];
tool.optionalInfo[@"ratios"] = ratios;
tool.optionalInfo[@"swapButtonHidden"] = @YES;
Excellent
from climageeditor.
Glad to hear that! Then I'll push to master.
from climageeditor.
Related Issues (20)
- undo redo function HOT 6
- Enable DONE button only after some editing
- Changing CLImageEditorTheme properties don't affect style HOT 1
- Navigation bar dives into the status bar when pushed from UIImagePickerController HOT 1
- Apply sticker above image
- Memory Issue HOT 1
- Lexical or Preprocessor Issue on UIImage+Utility.h' HOT 1
- How remove all filter/sticker
- I hide the status bar when clicked on tools. But, the Title of tools is missing in iPhone X and above as it is overlapping with the notch. HOT 2
- How to small grid view on Image with desired coordinates ?
- Can i display the stickers in multiple rows instead of single row that is available right now with the Library? HOT 1
- How to customize the Stickers Tool or create my own custom Tool and place it into the list? HOT 3
- Is it possible to change background only for stickers and emoticons?
- When click on edit button , I want only text related Tools.
- Two Navigation bar overlaps while editing selected image HOT 3
- CLTextTool Crash when delete all text.. HOT 2
- Excluding tools
- Undo and redo Feature missing
- CRASH on deleting single character HOT 4
- add sticker from photo album HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from climageeditor.