Fix Javascript Canvas Code
- Status: Closed
- Prize: $49
- Entries Received: 2
- Winner: panpur
Contest Brief
Provided are the links to the code with the example for perspective image transformation done with Javscript and Canvas.
Code on GIT: https://github.com/wanadev/perspective.js/
Working Example: http://www.html5.jp/test/perspective_canvas/demo1_en.html
I have also attached the working example. (just unzip and run index.html file)
This code works great until the image is flipped (mirrored).
When flipped horizontally, the image disappears. Please see the attachment.
When flipped vertically, the image is distorted.
I need to find the solution to get proper transformation for both: vertical and horizontal flipping.
I see three possible solutions:
1. Fix the current code. This is a preferred solution.
2. Modify current code with adding optional horizontalFlip, verticalFlip parameter. (Flipping the image before doing the transformation.)
3. Write a different code that will give comparable results. It would need to be done without any heavy external libraries.
I would also prefer not using WebGL. Also, the CSS solution would not work as it will have browser compatibility issues.
Please let me know if you have any questions.
Recommended Skills
Employer Feedback
“Very good experience.”
ashevillemnt, United States.
Top entries from this contest
-
panpur Indonesia
-
Donc310 Nigeria
Public Clarification Board
How to get started with contests
-
Post Your Contest Quick and easy
-
Get Tons of Entries From around the world
-
Award the best entry Download the files - Easy!