itouch2 / phototweaks Goto Github PK
View Code? Open in Web Editor NEWDrag, Rotate, Scale and Crop
License: MIT License
Drag, Rotate, Scale and Crop
License: MIT License
Firstly, thanks your fantastic works.
I checked codes and can not understand checkScrollViewContentOffset
did clearly. When I commented those invocations simply, it seems that no weird actions occur.
Could you explain the related codes?
sample code does not work.. and crop view controller does not fit in the pop over
The PhotoTweaksViewController does not handle orientation changes gracefully, often resulting in misplaced UI components. Could you give me some advice about handling orientation changes, or look into it yourself?
Thanks for this great component!
it would be great if we add two new option along with zoom
Forcing an always square crop view would a nice addition :-)
you have any ideas on why? Great project by the way love the simplicity!
Hey i want to fix the height and width of the frame and allow scale and zoom only
thanks for the help
I want to use this library in swift, How can i use this?
Is there anyway you could add the option to change the tint color of the slider and the RESET button ?
Thanks.
Hi again!
I was running the "Analyze" in Xcode, as well as the Instruments for Memory Allocations/Leaks, and noticed that when the PhotoTweaks is used, then dismissed, the memory doesn't drop back down to where it was. Something isn't getting freed.
Running the Analyze shows in "saveBtnTapped":
Object leaked: allocated object is not referenced later in this execution path and has a retain count of +1.
I started running instruments on my app because I noticed that it's getting a lot of low memory warnings from the iOS SDK.
If trying to rotate 90 degrees to a landscape view from a portrait view it appears the limits of the window are based on the dimensions of the portrait view. Might I suggest adding either a button to rotate the image 90 degrees below the reset button or using some variant of sin((angle+M_PI_2+M_PI_4)*2)<0 to change the bounds to map height to width and width to height in those scenarios
Hello again itouch2,
You might be aware of this issue, but I noticed a weird behavior in the crop rect, for example if I pull the lower horizontal line downwards (outside of the bounds), the WHOLE rect becomes smaller, not just that edge is restored to the lower bound of the image.
All sides collapse closer together. You can keep doing that and end up with a 1 pixel rect.
Thought to let you know, good stuffs!
Thanks!
Hi itouch2, great module you created! :)
I edited the PhotoTweaksViewController to add a "RESET" button similar to Apple's Photos Edit feature.
At first I tried performing the reset in the PhotoTweakView class, that way I can "animate the reset", to look cool, but then I stumbled up a lot of issues because there are many moving parts (crop rect, grids, scrollview bounds, etc.)
So I ended up just adding the reset button to the PhotoTweaksVC, and drop the photoView from superview and add a new one. Which is ok, but not as cool.
Anyway, it's just a suggestion, if you have time, would be cool to have a reset button.
Thanks!
version 1.0.3
Lets say image size is 2448x3264, and do the crop on screen of the the width as 1224x3264, but the final output image size is 2448x6157, this is a bug?
could you plz make it pod
could you plz add this feature ability to add text on photo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.