Comments (3)
I used the sample app, and could not recreate the error you have encountered.
I altered the code in the save signature function, and added code that is close to your code
// Gets the signature of type UIImage from the signature view let testsignature = self.signatureView.getSignature() // converts the testsignature of type UIImage to NSData let pngimage = UIImagePNGRepresentation(testsignature!) // converts the data representation back to an UIImage let image = UIImage(data: pngimage!)
So I made some doodles in the altered test project
I tapped Save signature, and I QuickLooked the image variable.
As you can see, the output image converted to and later from NSData is correct. The code published on Github is working as intended, so you have either 1. stale YPDrawSignature code, 2. customised it and introduced the bug yourself, or 3. some weird stuff going on. ;)
So my advice is for you to add
let debugImage = UIImage(data: imageData)
right after your code, and a breakpoint right after that. Now you can QuickLook the let debugImage, and the image should be correct.
If it is correct, you have manipulated that data further down the line, and have to debug it there.
If it is incorrect, and you have customised the YPDrawSignatureView code, you have almost certain added the bug during this customisation, and have to debug it there.
If it is incorrect, and you have fresh code from this repository, get back to me and we have to get to the bottom of the problem.
from ypdrawsignatureview.
Thanks. Closing the ticket. I think it has something to do with my upload handler (PHP).
from ypdrawsignatureview.
Ok. I can ask one of our back-end guys to help if you have problems with the php-related stuff.
from ypdrawsignatureview.
Related Issues (20)
- Add reference to YPDrawSignatureView from Delegate HOT 2
- Add signature view to tableview. HOT 3
- READ THIS FIRST BEFORE FILING ANY ISSUES!
- error:required code signature missing HOT 1
- Set image as signature HOT 8
- Lag in iPhone X HOT 1
- Apple Pencil support HOT 3
- Signature Authentication HOT 2
- I want to use camera and signature on screen can help how to do HOT 1
- old version on Cocoapods ! HOT 3
- Sometimes unable to get images HOT 1
- Detect handwritten signature HOT 3
- Could you add Eraser ? HOT 1
- performance issue when drawing 3 lines or more HOT 8
- Undo Redo and Eraser Support HOT 4
- saving the image within the App instead of photo gallery HOT 1
- Delegate property and YPSignatureDelegate are not public therefore not accessible to external code HOT 1
- Non-'@objc' method 'didFinish' does not satisfy requirement of '@objc' protocol 'YPSignatureDelegate' HOT 1
- Signature Vector svg format HOT 3
- Delegate isn't public HOT 5
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 ypdrawsignatureview.