![]() I'm setting a timeout because if you don't it will send the form to php before cropit can create the base64. We are leading the way by empowering smallholder farmers with technology and new innovations for sustainable food security. All reactions Sorry, something went wrong. This feature seems pretty high in demand and I'll make sure to add it soon. The way I got it to work is by messing around with the quality settings of Cropit and creating a PHP function that reads the base64 string and converts it to an image. CropIT is an independent, mission-driven company, building a trusted digital platform and deploying technologies to empower communities of farmers to be more successful. Right now there's no API for that but one way to do it is to remove background-imageof the image container: ('.cropit-image-preview').css('background-image', 'none'). Create the Html for a basic image cropper with a zoom slider. into an image that I can use in a php script. Include the jQuery javascript library and the jQuery cropit plugin in your Html page. The code here is working properly for the plugin but I'm unable to turn the result which looks something like data:image/png base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD. Var imageData = $('#image-cropper').cropit('export') ![]() $('#image-cropper').cropit('previewSize', ) Src:'users/'+username+'/profile_picture.jpg' I'm using the Cropit plugin and all I need is an image that I can pass into my php upload script. I've been searching the internet for a while now and cannot find anything that tells me how I turn the result from $('#image-cropper').cropit('export') into an image that PHP can upload to the server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |