If you try send a image again after your cancel the first try the modal dont open, only if you try send a diferent image name. Can you solve this bug? Seems need clear the name of file in the html inputfile.
Hi ,when I set the src attribute of the image , or even if I try to send the whole image tag I could not see the image in the img tag. I checked with setting alerts if the data is proper which I found to correct but somehow the img tag only shows the default icon. can u please help?
php limits the maximum post size to prevent the script hogging the ram, to upload more than 1m you can change the variable of post_max_size=_M in the php.ini.
1)) why only base64 let the the image be png/ jpg/ jpeg types . 2) how to upload specific width & height image (image co ordanates may vary or any part of the orignal picture but with specific height and width ) // 3 move uploaded file with timestamp // 4 how to check if user has already upload the photo then needs to delete earlier one and replace this new one .. i hope this will make it complete user profile image uplode edit & delete compelte tutorials .
Fond a solution myself. Add input field tag just after the IMG tag in upload PHP echo ''; echo ''; You can then use the hidden field value to read the file name.
but this is base64. which means if you were to save it in server, you would have to save this as a database variable. which is NOT good. Can you do it other way around? I want to have the file.
Very nice. but please I would like to see a tutorial how to select the Image and upload the croped area to a Server. imagin you offer an user to upload a photo to a social media and the user can croped it oand upload on the fly.
Lmao the voice. So, what do we do after doing that. Say the image is uploaded now, is it still necessary to insert the image path into SQL so that it is tied to the userID?
Why is that poor quality of uploaded image? There is something wrong. Thank you for the video though, it took time to make video, but the result is inacceptable.
U are the most helpful person in the world
Even though I am implementing it with Django, instead of PHP, this tutorial helped me a lot, thank you ❤
Thank you so much, it's very helpful
Thank you so much. How do i can custom folder for the image result?
Oh, I've got. In this line:
$imageName = time() . '.png';
I change to:
$imageName = '../myfolder/'.time().'.jpg';
Many thanks once more.
God Bless Webslesson!!
thank you very much, this video helped me more than others
thanks guy! you saved my life!!!
Terimakasih videonya bermanfaat bagi saya, saya dari Indonesia
Perfect Tutorial, really helped me a lot, this is what i was exactly looking for.
can you please send the code?
Awesome tutorial, thanks
You are great 😎
Great tutorial, anyway how can I change the destination folder of the cropped image?
'folder_name/'.$imageName
That should work
Nice. I really like this. Easy to use.
Excellent tutorial! Does this plug-in have the option to rotate the image or correct its orientation?
Yes it does. There is an example on the croppie website.
thanks for the tutorial, this really helped me, I want to ask how to save the cropped image in a specific folder? thank you very much
Wow bro , It's really useful and understandable. ..
Each time i hear "crop" i need to drink.
I forgot to ask how to Change png to jpeg and set the compression ratio?
Fantastic tutorial, thank you very much!
Thank u so much !! u r a saviour
Hello,this is awesome....How do i do this in yii2 MVC framework?
Thank you so much
have you any training center or classes ??....I want to join ...Plz answer...From gujarat
¿como agrego los controladores de rotación?
you is the best sir
si deseo cambiar la ubicación donde se guarda la imagen, que debo hacer?
Can you make a tutorial with multi upload using jquery with preview... If I want I can crop image and I can modify the order for the files
Good Job.Thank you so much.
What do you mean by upload cropped image under working folder? 13:53
sir..what i will do if i want to show that croped image in my html site..??
If you try send a image again after your cancel the first try the modal dont open, only if you try send a diferent image name. Can you solve this bug? Seems need clear the name of file in the html inputfile.
It's amazing!! but how can I save the image in a bigger size? without move anything in HTML modal
in "$('.crop_image').click(function(event) {" put " size: 'original' "
like this
$('.crop_image').click(function(event) {
$image_crop.croppie('result', {
type: 'canvas',
format: 'jpeg',
size: 'original'
}).then(function(response) {
$.ajax({
url: "upload.php",
type: "POST",
data: {
"image": response
},
success: function(data) {
$('#uploadimageModal').modal('hide');
$('#uploaded_image').html(data);
}
});
})
});
@@Lukeibol nice dude 🔥
@@Lukeibol where you learnt js ? I want to learn it too.
Very helpful video thanks
Excellent!
how to change the crop line indicator to circle? Is it even possible? I want it circle cause my profile photo in my project is circle.
It looks like you just have to change the croppie parameters in the viewport from type: 'square' to type: 'circle'
Hi ,when I set the src attribute of the image , or even if I try to send the whole image tag I could not see the image in the img tag. I checked with setting alerts if the data is proper which I found to correct but somehow the img tag only shows the default icon. can u please help?
what version of php do you use?
Perfect tutorial nice & thank you
when i open site from mobile than the photo rotates left
what to do ???
Very very nice bro. Thanks
thanks for the help buddy......
Wow!
How to insert Rotate left/right function ?
Thank you for the tutorial
When response is over 1MB, the variable POST is not received by PHP
Do you know why?
php limits the maximum post size to prevent the script hogging the ram, to upload more than 1m you can change the variable of post_max_size=_M in the php.ini.
how to store that cropped image to my storage and how can I display that stored path in my database in laravel???
same here
Did you got the solution?
how to directly save the crop image into the database?
Save base64 image
1)) why only base64 let the the image be png/ jpg/ jpeg types . 2) how to upload specific width & height image (image co ordanates may vary or any part of the orignal picture but with specific height and width ) // 3 move uploaded file with timestamp // 4 how to check if user has already upload the photo then needs to delete earlier one and replace this new one .. i hope this will make it complete user profile image uplode edit & delete compelte tutorials .
Can you make now one for the profile background? Like when you upload you be allowed to move and adjust the way o want
How to get the image file name back to the calling program (index.php) as I need to store the same in a database. Can someone please help?
Fond a solution myself. Add input field tag just after the IMG tag in upload PHP echo '';
echo '';
You can then use the hidden field value to read the file name.
how to directly save the crop image into the database? I am trying to update the profile photo and save it into the database. Please help..
Did you got the solution?
how can i change dir of cropede image ??
how to upload when click submit button. not when crop & upload.
good explained, thanks for share
EXCELENT!! Thank you!
Why $_POST['image'] input name is diffrent..
That's the ajax variable name call not input file name
you not share how to save or insert in db, how I can save in Php DB upload or insert method ? share the code pls
hi, how i can save and move the img now?
Why isn't the input inside of a form ?
the height of the modal is too large... how can we decrease it.. and how can we make this look good in mobile version'
I've had terrible trouble with bootstrap modal boxes on mobile. Can't seem to get rid of the massive shadow.
Very Good Video
but this is base64. which means if you were to save it in server, you would have to save this as a database variable. which is NOT good. Can you do it other way around? I want to have the file.
Thx man its helpful
downloaded source code is showing file damaged error
blaah good work
thank you for this video
Thanks For Ur Tutorial Sir.... But Rar File is Corrept Sir.. please Help me Sir
Thank You Very Match.
nice person amazed you
Very nice. but please I would like to see a tutorial how to select the Image and upload the croped area to a Server. imagin you offer an user to upload a photo to a social media and the user can croped it oand upload on the fly.
please i need tuto how to make script hotel management
Nice tutorial! Can you make one with codeigniter ?
Thanks!
The download file is corrupted
Hi, Bruno We have tested file and then after we have upload and we have again download on our end and it working properly, please try again.
Was the program WinRAR that was outdated. it worked normal. Thank you so much.
Lmao the voice. So, what do we do after doing that. Say the image is uploaded now, is it still necessary to insert the image path into SQL so that it is tied to the userID?
yes, how else do you know that the image is tied to the user's ID ?
Why is that poor quality of uploaded image? There is something wrong. Thank you for the video though, it took time to make video, but the result is inacceptable.
Banun de bhava....time nahiye
Fantastic!
how to download croppie plugin
amazing, thank you
how to can i save this in databse?
Did you got the solution?
how can i save it to file folder?
Create a folder and just add folder name in path of saved image or next to name of file.