Find Jobs
Hire Freelancers

JS/JQUERY Client-Side Exif Orientation Fix

$10-30 USD

已完成
已发布将近 6 年前

$10-30 USD

货到付款
Fix image rotation on Client-Side Exif Orientation. Fixed images need to be rotated/mirrored depending on which orientation is set, but browsers ignore this information rendering the image. Project: I have a javascript file uploader that I need the following fix to be added on : function resetOrientation(srcBase64, srcOrientation, callback) { var img = new Image(); [login to view URL] = function() { var width = [login to view URL], height = [login to view URL], canvas = [login to view URL]('canvas'), ctx = [login to view URL]("2d"); // set proper canvas dimensions before transform & export if (4 < srcOrientation && srcOrientation < 9) { [login to view URL] = height; [login to view URL] = width; } else { [login to view URL] = width; [login to view URL] = height; } // transform context before drawing image switch (srcOrientation) { case 2: [login to view URL](-1, 0, 0, 1, width, 0); break; case 3: [login to view URL](-1, 0, 0, -1, width, height ); break; case 4: [login to view URL](1, 0, 0, -1, 0, height ); break; case 5: [login to view URL](0, 1, 1, 0, 0, 0); break; case 6: [login to view URL](0, 1, -1, 0, height , 0); break; case 7: [login to view URL](0, -1, -1, 0, height , width); break; case 8: [login to view URL](0, -1, 1, 0, 0, width); break; default: break; } // draw image [login to view URL](img, 0, 0); // export base64 callback([login to view URL]()); }; [login to view URL] = srcBase64; } var originalImage = [login to view URL]("image-original"), resetImage = [login to view URL]("image-reset"); resetOrientation([login to view URL], 5, function(resetBase64Imagea) { [login to view URL] = resetBase64Imagea; });
项目 ID: 17400738

关于此项目

4提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hello, That job sounds easy enough to do, and I am free today so I can start working ASAP to have it finished in the next few hours. Please feel free to take a look at my portfolio on my profile, and to reach out! Thank you for taking the time to read this "proposal". Best regards
$30 USD 在0天之内
5.0 (3条评论)
2.3
2.3

关于客户

UNITED STATES的国旗
WOODLAND HILLS, United States
5.0
5
付款方式已验证
会员自9月 23, 2015起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。