Line 336: |
Line 336: |
| ===== Ignore me ===== | | ===== Ignore me ===== |
| <pre>$.post('/cgi/product_image_crop.pl', | | <pre>$.post('/cgi/product_image_crop.pl', |
− | {code: code, id: imagefield , imgid: imgid,
| + | {code: code, |
− | x1:selection.x, y1:selection.y, x2:selection.x + selection.width, y2:selection.y + selection.height,
| + | id: imagefield , |
− | angle:angles[imagefield], normalize:$("#normalize_" + imagefield).prop('checked'),
| + | imgid: imgid, |
− | white_magic:$("#white_magic_" + imagefield).prop('checked') }, function(data) {
| + | x1:selection.x, |
− |
| + | y1:selection.y, |
− | imagefield_url[imagefield] = data.image.display_url;
| + | x2:selection.x + selection.width, |
− | update_display(imagefield, false);
| + | y2:selection.y + selection.height, |
− | $('div[id="cropbutton_' + imagefield +'"]').show();
| + | angle:angles[imagefield], |
− | $('div[id="cropbuttonmsg_' + imagefield +'"]').html(Lang.image_saved);
| + | normalize:$("#normalize_" + imagefield).prop('checked'), |
− | $(document).foundation('equalizer', 'reflow');
| + | white_magic:$("#white_magic_" + imagefield).prop('checked') }, function(data) { |
− | }, 'json');
| + | imagefield_url[imagefield] = data.image.display_url; |
− | }); </pre>
| + | update_display(imagefield, false); |
| + | $('div[id="cropbutton_' + imagefield +'"]').show(); |
| + | $('div[id="cropbuttonmsg_' + imagefield +'"]').html(Lang.image_saved); |
| + | $(document).foundation('equalizer', 'reflow'); |
| + | }, 'json'); |
| + | }); </pre> |
| | | |
| ==== Performing OCR on a photo ==== | | ==== Performing OCR on a photo ==== |