Changes

Jump to navigation Jump to search
685 bytes added ,  11:18, 29 October 2016
Line 2,010: Line 2,010:  
Values:
 
Values:
 
==== Cropping a photo ====
 
==== Cropping a photo ====
<pre></pre>
+
<pre>$.post('/cgi/product_image_crop.pl',
 +
{code: code, id: imagefield , imgid: imgid,
 +
x1:selection.x, y1:selection.y, x2:selection.x + selection.width, y2:selection.y + selection.height,
 +
angle:angles[imagefield], normalize:$("#normalize_" + imagefield).prop('checked'),
 +
white_magic:$("#white_magic_" + imagefield).prop('checked') }, function(data) {
 +
 +
imagefield_url[imagefield] = data.image.display_url;
 +
update_display(imagefield, false);
 +
$('div[id="cropbutton_' + imagefield +'"]').show();
 +
$('div[id="cropbuttonmsg_' + imagefield +'"]').html(Lang.image_saved);
 +
$(document).foundation('equalizer', 'reflow');
 +
}, 'json');
 +
}); </pre>
 
Values:
 
Values:
 +
 
==== Performing OCR on a photo ====
 
==== Performing OCR on a photo ====
 
<pre>
 
<pre>

Navigation menu