Last active
August 29, 2015 14:27
-
-
Save kelvinrfr/90dc46a12c7411da1f87 to your computer and use it in GitHub Desktop.
clientImageSelectCropper.basic.pt-BR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>01 - Um simples seletor de imagem com opção de cortar</h2> | |
<div style="display:block"> | |
<label style="display:block">Resultado:</label> | |
<img class="imgTargetArea" src="#" /> | |
</div> | |
<script type="text/javascript"> | |
$(".imgTargetArea").clientImageSelectCropper({ | |
afterCropped : function(imageUrl){ | |
// Agora o 'imageUrl' é a url da imagem cortada. | |
// Essa url é a imagem no formato base 64. | |
// Agora do lado servidor é necessário converter para imagem fisica | |
// Ou salvar no banco de dados a string completa. | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment