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

  Рет қаралды 19,820

dcode

dcode

Күн бұрын

Пікірлер: 22
@MotiviqueStudio
@MotiviqueStudio 2 жыл бұрын
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
@okanozusen9236
@okanozusen9236 6 ай бұрын
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?
@monciego
@monciego 3 жыл бұрын
Thank you!
@andreasdevjs298
@andreasdevjs298 3 жыл бұрын
Great!!
@yeseniaperez6999
@yeseniaperez6999 Ай бұрын
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.
@thethapajii3607
@thethapajii3607 2 жыл бұрын
Please anyone explain me how can we download image?
@numixmterials338
@numixmterials338 2 жыл бұрын
Please make a video to export this meme
@sabridhibi3177
@sabridhibi3177 3 жыл бұрын
God i love this channel
@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
@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 2 жыл бұрын
@@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")
@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?
@awesomeguy1411
@awesomeguy1411 3 жыл бұрын
Great content! This one is actually pretty cool man - I wanna try it out one day if I ever get time 😂😂
Новый CSS! 2024
18:06
Как пройти в IT?
Рет қаралды 16 М.
How to Build a Kanban Board with JavaScript (No Frameworks)
1:25:39
Worst flight ever
00:55
Adam W
Рет қаралды 53 МЛН
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 12 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 13 МЛН
Create an Image Resizer with JavaScript & HTML5 Canvas
25:10
Build A Calculator With JavaScript Tutorial
38:50
Web Dev Simplified
Рет қаралды 1,5 МЛН
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 598 М.
I Trained an AI with 10,000 Memes
14:52
Coding with Lewis
Рет қаралды 305 М.
Create A MEME Generator Using JavaScript
20:27
Angle Brace
Рет қаралды 2,1 М.
Worst flight ever
00:55
Adam W
Рет қаралды 53 МЛН