igrsoft / igrphototweaks Goto Github PK
View Code? Open in Web Editor NEWDrag, Rotate, Scale and Crop
Home Page: https://igrsoft.com
License: MIT License
Drag, Rotate, Scale and Crop
Home Page: https://igrsoft.com
License: MIT License
hi,
I wanted to set the aspect ratio as 1:1 by default and it should be locked. How to achieve this. When first time image is selected the crop area is same as image view area I need that aspect ratio to be 1:1. Please help
Thanks
Ritika
Hi,
I have seen that but i want to know that when user select the image for
first time it is setting cropview as of imagesize. It is calculating
maxbounds (). I want to know how will it set 1:1 aspect ratio and lock it
by default.
Thanks
Ritika
If we select any image with any of mirrored orientation (upMirrored,leftMirrored,rightMirrored,bottomMirroed)
then it Does't gived correct output image.
How can I create a custom crop section after image picker?
@ikorich
Need possibility, to change the image dynamically. Cause I use your library in my VIPER project with custom navigation I need to set an image placeholder at first, and on completion set real image that I want to crop.
Questions:
P.S. I'll make PR with your suggestions to fix this.
Thank you in advance.
Can you please add functionality to rotate it 90 degree on button click?
also flip the image with animation on button click?
If I am setting the aspect ratio to 16:9 , because i want to force user to maintain that aspect ration while selecting the image.
User is able to change the aspect ratio to something else other than 9:16
There should be Boolean variable for example shouldLockAspectRatio , If that variable is set to be true , User should not be able to change the aspect ratio.
Command /bin/sh failed with exit code 1
this error I got when install example project in simulator
Kindly help me with the case in which I want to change the number of crop lines with the change of aspect ratio
when i set slider to -90~90 the crop area do not match the image.
wish your help.
CGImage+IGRPhonoTweakExtension.swift
CGContext is null when cropping PNG file
App crash on click on crop button if i select image from screenshot folder its working fine if I select image via camera. Crash only in iOS 13 and above.
When we transform image & click on crop, it is crashing as context in CGImage+IGRPhonoTweakExtension.swift is nil.
Added Valid frame for Crop View, when user change size of it
When rotating the image clockwise / counter-clockwise by 90 degrees, it seems like the crop area cannot select the whole image (even using original aspect does not work) and is still bound to the initial image size. Is there a way to update the crop area bounds when the image is rotated? Thanks!
You can reproduce the issue by manually setting the angle value.
self.changedAngle(value: 90.0)
Hi!
I am currently building an app to measure the pixels in a cropped image. This is why I need to use some internal variables of the pod such as:
Do you think you can change this variables to public so I can still use the pod in the future to crop the image and still be able to obtain the pixels without having to modify the internal code you have created?
Also, I would like to thank you for this amazing program, it has helped me a lot! I will attach the files in which I did the changes from private to public in case you want to take a look.
podChanges.zip
Best regards,
Manuela
I can make it work in your Example, but when I use Pods to install in my project the functions are not available. Seems like it's not pushed to master Pod release?
IGRPhotoTweakViewController+AspectRatio swift file missing when install through pods in version 1.0.6.
Thus not able to use "lockAspectRatio" method.
Hello!
I using this func:
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransition(to: size, with: coordinator)
coordinator.animate(alongsideTransition: nil, completion: (
{(context) in
self.view.layoutIfNeeded()
self.resetView()
self.resetAspectRect()
}
))
}
But sometimes(more often) AspectRect does not display correctly
How i can fix it?
Thanks!
Whenever user dragged to crop
it should zoop to fill screen same in photos app
or user change aspect ratio value from action sheet should also zoom to screen
how to implement this functionality.
The files from the example IGRPhotoTweaks folder are not the same as from the pod installation.
App getting crashed while cropping panorama image
Cropping is not working, just the border is shown when used inside a framework. Also, extensions methods are not recognized.
Hi!
I need to lock the crop area, so the user are not able to change the size. I want to set some fixed aspect ratios e.g. 16:9 and user should not be able to move the white lines. So the solution is "not" to set just:
self.lockAspectRatio(true). This will still allow users to move the white lines... I need to disable it completly. Is it possible?
i want to get the crop rect with orginal image base ;how can i do it?
Hi @ikorich
I resolved that issue for horizontal Dial.
I am facing few more issues like
Unknown class _TtC7Example25ExampleCropViewController in Interface Builder file.
2017-05-25 15:52:10.062683+0530 Example[266:8830] *** NSForwarding: warning: object 0x100096720 of class 'Example.ExampleCropViewController' does not implement methodSignatureForSelector: -- did you forget to declare the superclass of 'Example.ExampleCropViewController'?
2017-05-25 15:52:10.063087+0530 Example[266:8830] *** NSForwarding: warning: object 0x100096720 of class 'Example.ExampleCropViewController' does not implement doesNotRecognizeSelector: -- abort
One issue I resolved by making pickerview.allowsediting = true
but still I am not able to run example in my device.
Please let me know whats wrong ?
Thanks !!
i have cropRect with photoView.scrollView.contentOffset but in ipad and plus devices it returns wrong point
All the features are good.
Is there any way to get Swift5 support ?
After choosing an image from UIImagePicker, which will be passed to the IGRPhotoTweakViewController. The image will be shown in there but it loses its original quality. Does anyone have the answer?
The latest release of 1.0.6 is several checkins behind.
Can you create another release from master?
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.