How to Build a Meme Generator with JavaScript (No Frameworks Project)

  Рет қаралды 20,081

dcode

dcode

Күн бұрын

Пікірлер: 22
@MotiviqueStudio
@MotiviqueStudio 3 жыл бұрын
Thanks for taking the time to do this. Ended up solving problems I was having combining fill and stroke. edit: I wrote a generator using a workaround with divs placed where the text is supposed to appear on the canvas. The div updates with elementById =, but the actual canvas isn't updated with the text until a generate function fires. Impact is the typical meme font, but it's not free. I used Anton, which works in a pinch.
@stardustbiscuits
@stardustbiscuits 2 жыл бұрын
Wdym it's not free?
@cateva20
@cateva20 3 жыл бұрын
how to use an image url link instead of local upload?
@hot_milk4001
@hot_milk4001 3 жыл бұрын
this is mad great content champ
@monciego
@monciego 3 жыл бұрын
Thank you!
@sabridhibi3177
@sabridhibi3177 3 жыл бұрын
God i love this channel
@andreasdevjs298
@andreasdevjs298 3 жыл бұрын
Great!!
@awesomeguy1411
@awesomeguy1411 3 жыл бұрын
Great content! This one is actually pretty cool man - I wanna try it out one day if I ever get time 😂😂
@thethapajii3607
@thethapajii3607 2 жыл бұрын
Please anyone explain me how can we download image?
@STech04
@STech04 3 жыл бұрын
How can we download Meme image
@finnbarm
@finnbarm 3 жыл бұрын
Use canvas.toDataURL("image/png") This returns a base64 string, which you can put in a HTML a tag with the download attribute
@STech04
@STech04 3 жыл бұрын
@@finnbarm Thanks bro
@manojbheemireddy
@manojbheemireddy 3 жыл бұрын
@@finnbarm can you please elaborate little more, iam beginner, where should we add these lines
@charliecode
@charliecode Жыл бұрын
@@manojbheemireddy downloadBtn.addEventListener('click', function() { // Convert the combined canvas to an image and download it const downloadLink = document.createElement('a'); downloadLink.href = canvas.toDataURL(); downloadLink.download = 'result_image.png'; // Customize the downloaded file name downloadLink.click(); console.log(backgroundImage.width); }); ps: downloadBtn is your button than you can select with document.getElementById("Id_of_your_button")
@okanozusen9236
@okanozusen9236 8 ай бұрын
I followed the steps but in the console i'm getting the message "cannot read properties of null (reading 'addEventListener') for when you do imageFile.Input.addEventListener. why is that?
@numixmterials338
@numixmterials338 2 жыл бұрын
Please make a video to export this meme
@yeseniaperez6999
@yeseniaperez6999 3 ай бұрын
So when I attempt to replicate this generator, the image and the text do not display at all. I did console.log it and see the links. What could this be? Also, if anyone knows how to do this but instead adding an image's url that you can paste instead of uploading a file it would be very helpful.
@sravani7273
@sravani7273 Жыл бұрын
The font size is very small.. To change fontsize what I have to change .. Even I am changing the division factor of 10 the size of the letters are not increasing ... Instead of that the background is changing... Can anyone tell me if u know
@Rahul-ps9jw
@Rahul-ps9jw 3 жыл бұрын
Continue as React-js project
@juhandvan
@juhandvan 3 жыл бұрын
so fun
@charlenepeters2423
@charlenepeters2423 2 жыл бұрын
Do you have a way that I can give a one-time contribution?
Create an Image Resizer with JavaScript & HTML5 Canvas
25:10
I Trained an AI with 10,000 Memes
14:52
Coding with Lewis
Рет қаралды 310 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 48 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 43 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 33 МЛН
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
How to Build a Kanban Board with JavaScript (No Frameworks)
1:25:39
HTML Templates Instead Of Reactivity | Prime Reacts
12:42
ThePrimeTime
Рет қаралды 115 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 48 МЛН