Search the Community
Showing results for tags 'camera'.
-
Does anyone produce a camcorder with a "PAUSE" feature/button? Instead of using the START & STOP buttons which create multiple individual files, a PAUSE feature would allow the operator to film an entire event as one file instead of hundreds. With what we are doing and how we operate, we do not have time to use editing software post-filming to combine the files ourselves. We need to be able to take the memory card as is, copy it to a USB device via our MacBook and then duplicate that USB device as many times as we may need to do so.
-
Hi! I am using the exif.js library to detect the input image's EXIF, to cope with the mobile devices camera orientations. The trouble I am encountering is that I don't seem to be able to override EXIF case "0", the standard portrait mode for both front and back camera. This is my relevant code: var orientation; EXIF.getData(profileImg, function() { orientation = EXIF.getTag(this, "Orientation") }); context.save(); orientateContext(); (function animationLoop(event) { renderProfileImg(event); context.restore(); renderBadgeImg(); requestAnimationFrame(animationLoop, profileImg); })() ... function orientateContext(orientation) { switch (orientation) { case 2: // horizontal flip context.translate(canvas.width, 0); context.scale(-1, 1); break; case 3: // 180° rotate left context.translate(canvas.width, canvas.height); context.rotate(Math.PI); break; case 4: // vertical flip context.translate(0, canvas.height); context.scale(1, -1); break; case 5: // vertical flip + 90 rotate right context.rotate(0.5 * Math.PI); context.scale(1, -1); break; case 0, 6, 90: // 90° rotate right context.rotate(0.5 * Math.PI); context.translate(0, -canvas.height); break; case 7: // horizontal flip + 90 rotate right context.rotate(0.5 * Math.PI); context.translate(canvas.width -canvas.height); context.scale(-1, 1); break; case 8, -90: // 90° rotate left context.rotate(-0.5 * Math.PI); context.translate(-canvas.width, 0); break; default: break; } }
- 9 replies
-
- javascript
- exif
-
(and 1 more)
Tagged with: