Færdiggjort

JS/JQUERY Client-Side Exif Orientation Fix

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;

});

Evner: Javascript, jQuery / Prototype, PHP

Se mere: sample code client server tcp file transfer vb net, adpcm file format converter source code, flash client load xml file, base64 image orientation, javascript-load-image orientation, filereader orientation, exif js example, javascript rotate image based on exif, jquery exif orientation, javascript fix image orientation, rotate image before upload javascript, upload file vbnet web project code, file enc dec source code project, photoshop resize psd file, file uploader net source code, sample client server program file transfer, resize eps file, resize flash file html, resize flash file pixels, resize flash file

Om arbejdsgiveren:
( 0 bedømmelser ) United States

Projekt ID: #17400738

Tildelt til:

VirginieLGB

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! Flere

$30 USD in 0 dage
(2 bedømmelser)
2.0

5 freelancere byder i gennemsnit $30 på dette job

$35 USD på 1 dag
(185 bedømmelser)
7.2
yogeshssanwal

Hello, I think my ability is just Suitable for your job and I will complete your Project perfectly, you will get satisfied result…. I have complete expertise in PHP, html5/css3, Javascript, Jquery, bootstrap, Wordpres Flere

$32 USD på 1 dag
(206 bedømmelser)
6.9
$25 USD på 1 dag
(27 bedømmelser)
6.2
$30 USD på 1 dag
(0 bedømmelser)
0.0