Тёмный
CodeDev
CodeDev
CodeDev
Подписаться
Комментарии
@wonenaworld
@wonenaworld 6 дней назад
Very clear. thanks
@kickoffworld2450
@kickoffworld2450 10 дней назад
Great video broski, fast service
@djkcomputing
@djkcomputing 13 дней назад
Thank you so much for this video and the first one also. I am having trouble getting this to work with my server. Im echoing out all the POST values being sent to a PHP file on my server, but it is never populated with any data. Any ideas what I am missing? Thanks!
@akhila5597
@akhila5597 Месяц назад
short and concise ! thanks
@kristofs8893
@kristofs8893 Месяц назад
I have a question. I found this algorithm in a Udemy course and I can't figure out how or why does he use: in the if block "startHeight = (img.height - img.width) / 2;" and the opposite in the else // He uses this formula to crop from the top when the pic is portrait and from the width when it is landscape or nothing if it's a square. What is this formula about? To me it doesn't make any sense, but it works perfectly on every image. Usually it crops between 10%-15% from the height or the width. Can you explain me if this is related to Geometry? I can't find anything on the Web about it. Algorithm: // img = imgDOM, canvasDOM, function guy(img, canvas, targetWidth, targetHeight) { canvas.width = targetWidth; canvas.height = targetHeight; let startWidth; let startHeight; let width; let height; // Resizing Portrait if (img.height > img.width) { console.log("portrait"); startWidth = 0; // crop size difference / 2, if portrait startHeight = (img.height - img.width) / 2; width = img.width; height = img.width * (targetHeight / targetWidth); } else { // Resizing landscape and square images startWidth = (img.width - img.height) / 2; // if this is 0 we have a square startHeight = 0; width = img.height * (targetWidth / targetHeight); height = img.height; } ctx.drawImage( img, startWidth, // Crop start width startHeight, // Crop start height width, // Cropped width height, // Cropped height 0, // Canvas start width 0, // Canvas start height targetWidth, // Result width targetHeight // Result height ); }
@nbamastermind
@nbamastermind Месяц назад
Great presentation and explanation. I'd suggest linking resources to the concepts you mentioned to research outside the video.
@kaparapsekiel6300
@kaparapsekiel6300 2 месяца назад
Thank you so so much, precise and clearly explained.
@brianalexander2202
@brianalexander2202 3 месяца назад
Este video debería ser visto por todos los full stacks del mundo
@brianalexander2202
@brianalexander2202 3 месяца назад
FUCKING AMAZIIIING!!!!! 🤯!!!!
@IslamMotors
@IslamMotors 4 месяца назад
Good
@OmoladeOkaiyeto
@OmoladeOkaiyeto 4 месяца назад
super clear thanks
@vaibhavJ980
@vaibhavJ980 4 месяца назад
Nice
@153mdjawadbinkhaleque9
@153mdjawadbinkhaleque9 4 месяца назад
Great Explanation! Thanks <3
@ChasingDream2002
@ChasingDream2002 4 месяца назад
This is so helpful !. Thank you so much
@PatrickKirby-ts5dy
@PatrickKirby-ts5dy 4 месяца назад
Right to the point. Really great video
@karolinewinzer9599
@karolinewinzer9599 5 месяцев назад
Incredibly helpful, thanks so much!
@gorumosso
@gorumosso 5 месяцев назад
I need more of these streams
@ankurvishwakarma8731
@ankurvishwakarma8731 5 месяцев назад
Very nice :)
@paraprogramar-jv7nn
@paraprogramar-jv7nn 5 месяцев назад
gracias broh!
@edwardgaming5681
@edwardgaming5681 5 месяцев назад
You have an amazing explanation skills, why you stopped uploading brother??
@almairtaza3793
@almairtaza3793 5 месяцев назад
how to install inquirer in macbook air plz explain
@codeaspro634
@codeaspro634 5 месяцев назад
Outstanding work! Thanks a lot man, you have made it super easy to understand. Please continue making tutorials for us.
@omojowoifemayowa6149
@omojowoifemayowa6149 5 месяцев назад
Short and clear and concise
@shabeenabarde9064
@shabeenabarde9064 6 месяцев назад
Hello! Great video! I just wanted to ask if there is a way to compress this without setting a width and a height? Lets say instead of uploading an image, I clicked an image via my webcam/mobile and i want it to take the device's width/height. And because the base64 will be huge to upload to the server, i want to compress it to a particular size maybe?
@code_dev
@code_dev 6 месяцев назад
Yes possible. You can get the aspect ratio of raw image or even the size of raw image. And use that.
@mattvalgreen
@mattvalgreen 6 месяцев назад
Thank you sir. great video/explanation
@PawanTamang-d6n
@PawanTamang-d6n 6 месяцев назад
can't we make this whole a separate function that returns a compressed file? And then we can upload that file...
@code_dev
@code_dev 6 месяцев назад
You can refactor your code in any why you prefer. As long as the process remains in tact.
@lizethmdzt
@lizethmdzt 7 месяцев назад
Are there any way to make the same with videos?
@code_dev
@code_dev 6 месяцев назад
Not in browser. Wouldn’t recommend that. Generally you can use 3rd party videoEncoding services API with your backend.
@frankdrolet9439
@frankdrolet9439 7 месяцев назад
Great tutorial again, loved this 2 part serie!
@frankdrolet9439
@frankdrolet9439 7 месяцев назад
Grrreeaat tutorial, thanks man!
@AbdulKarim-pb3js
@AbdulKarim-pb3js 7 месяцев назад
You got a like, impressive presentation
@specex
@specex 7 месяцев назад
I'm late to the party, but just want to say thank you for two excellent videos on JS image processing. I normally do my image processing on the backend with .Net/C#, but this was really good stuff, and well presented. Bravo!
@code_dev
@code_dev 6 месяцев назад
Thanks ❤️
@deanntpchanel6335
@deanntpchanel6335 7 месяцев назад
Thanks
@writterpanditsid5048
@writterpanditsid5048 7 месяцев назад
Thanks
@EddieMao
@EddieMao 8 месяцев назад
Best video in such image processing subject in js. Liked and subscribed
@PhilipCProjects
@PhilipCProjects 8 месяцев назад
Excellent post thank you bro! I tried node -v also node --version Both work!
@user-dj9gg1sq9q
@user-dj9gg1sq9q 8 месяцев назад
Great Teacher !
@dchubad
@dchubad 8 месяцев назад
You look a lot like Jim Carrey :) good video, thanks
@ka_shanti
@ka_shanti 8 месяцев назад
Thanks for getting straight to the point!
@dchubad
@dchubad 8 месяцев назад
how do you convert the image to a blob?
@ThatAdel
@ThatAdel 8 месяцев назад
Thanks man.
@davidwatkins8016
@davidwatkins8016 9 месяцев назад
Node installs but not npm. Ideas?
@code_dev
@code_dev 8 месяцев назад
NPM comes with node. If you are getting command npm not found but Node is found it means you need to tell your os where npm you can google for npm command not found and you will find command for your OS to add nom to system variables
@sistana
@sistana 9 месяцев назад
Gran video!!. Muchas gracias por compartir dear friend!!
@chrisdan81
@chrisdan81 9 месяцев назад
thanks
@stevelawless1
@stevelawless1 9 месяцев назад
Thanks for the tutorial, I found some code that over complicated this procedure which included functions and all sorts, this video has been a massive help, once ive added this to my site I will be looking at the upload to server as IM pretty sure you could save me some code. Worth a subscribe, keep it going, from the UK ;-)
@SanjoyLab
@SanjoyLab 9 месяцев назад
thank you vaiya.
@hifianatomia
@hifianatomia 10 месяцев назад
great videooo!
@tomloa245
@tomloa245 10 месяцев назад
thanks but how to launch it ?
@patshalaaa
@patshalaaa 10 месяцев назад
Awesome 🎉🎉🎉
@devatrii
@devatrii 11 месяцев назад
@maymisarr9059
@maymisarr9059 11 месяцев назад
very helpful! Quick & to the point