
studyblr • stemblr • codeblr • progblr • swiftie • writer • computer science & computer engineering
75 posts
Empowering Bbe Tuesday Afternoon; Whatever That Means
empowering bbe Tuesday afternoon; whatever that means
what is your daylist title on spotify today?
-
happywitch416 reblogged this · 4 months ago
-
kkoongie liked this · 4 months ago
-
lenteur reblogged this · 4 months ago
-
mooninagust reblogged this · 4 months ago
-
ofgoodstars reblogged this · 4 months ago
-
uiambra reblogged this · 4 months ago
-
unfading-scrutiny liked this · 4 months ago
-
tittylegend reblogged this · 4 months ago
-
fureal liked this · 4 months ago
-
luxspuss reblogged this · 4 months ago
-
ohlooktrash reblogged this · 4 months ago
-
lunalunaris liked this · 4 months ago
-
fvriva reblogged this · 4 months ago
-
fvriva liked this · 4 months ago
-
bimidna liked this · 4 months ago
-
thepenguinflash reblogged this · 4 months ago
-
blackinkedobsession reblogged this · 4 months ago
-
dravanianwyvern liked this · 4 months ago
-
novemberhush reblogged this · 4 months ago
-
ghaza-l reblogged this · 4 months ago
-
echoxeclipse reblogged this · 4 months ago
-
orion-the-onion reblogged this · 4 months ago
-
orion-the-onion liked this · 4 months ago
-
greengrassandcyansea reblogged this · 4 months ago
-
bogballad reblogged this · 4 months ago
-
lightpinkstuff liked this · 4 months ago
-
lightpinkstuff reblogged this · 4 months ago
-
cemeteryescapee liked this · 4 months ago
-
lakeside-paradise reblogged this · 4 months ago
-
feathers-little-nest reblogged this · 4 months ago
-
feathers-little-nest liked this · 4 months ago
-
kmpsideposter reblogged this · 4 months ago
-
gluthor reblogged this · 4 months ago
-
swinefluuu reblogged this · 4 months ago
-
mila-is-dead reblogged this · 4 months ago
-
aviaryappreciation liked this · 4 months ago
-
improvinghorde reblogged this · 4 months ago
-
boycannibal reblogged this · 4 months ago
-
trupowieszcz reblogged this · 4 months ago
-
trupowieszcz liked this · 4 months ago
-
slonechnik reblogged this · 4 months ago
-
organized-decay liked this · 4 months ago
-
theoceanislikeyou liked this · 4 months ago
-
mamawardentotherescue liked this · 4 months ago
-
starlghtt reblogged this · 4 months ago
-
vamp-orwave liked this · 4 months ago
-
informaltorching liked this · 4 months ago
-
crownedinmarigolds reblogged this · 4 months ago
-
seylaaurora liked this · 4 months ago
-
vensulove reblogged this · 4 months ago
More Posts from Honeynebula
Convert HTML to Image: A Step-by-Step Guide ✨

Do you want to turn some HTML code you've made that's on your website and have a way to convert it into an image for you to save?
Well, look no further! I too wanted to do the same thing but funny enough, there weren't any straightforward tutorials out there that could show you how! After hours of searching, I finally discovered the solution~!
This is an old tutorial I made 🐼

💛 Set your environment
Before we dive into the conversion process, I'll assume you already have your HTML code ready. What you want to learn is how to turn it into an image file. You should have a good grasp of HTML and JavaScript. For this tutorial, we'll use the following HTML code example:

We won't include the CSS code, as it doesn't affect this tutorial. The JavaScript file (script.js) at the bottom of the body element is where we'll add the functionality for the conversion.
Your page should resemble the following:

As you can see, the "Click me" button will handle the conversion. We aim to convert everything within the div.info-div into an image.
💛 Using the html2canvas JavaScript Library
The html2canvas library allows you to take screenshots of webpages and target specific elements on a screen. Here are the steps to include the library in your project:
The steps to put the library in your project:
Visit the html2canvas website for more information.
Copy the CDN link from here

and include it in a script tag in your project's head tag in the HTML file:

That's it for including the library on the HTML side. Now, let's move on to the JavaScript code.
💛 JavaScript Functionality
Here's the JavaScript code to handle the conversion:

In this code, I want to turn the whole div.info-div into an image, I put it into a variable in const div = document.querySelector(".info-div");.
I also put the button into a variable in const button = document.querySelector("button");
I added a click event listener to the button so when the user clicks the button, it will follow the code inside of the event listener!
You can find similar code like this in the documentation of the html2canvas library:

What is happening here is:
We add the div (or what the element we want to take an image of) into the html2canvas([element]).then((canvas)
Added the image file type url to a variable = const imageDataURL = canvas.toDataURL("image/png"); - You can replace the png to other image file types such as jpg, jpeg etc
Created an anchor/link tag, added the href attribute to imageDataURL
The download attribute is where we will give the default name to the image file, I added "dog.png"
Perform the click() function to the anchor tag so it starts to download the image we created
And that's it!
💛 The End
And that's it! You've successfully learned how to turn your HTML into an image. It's a great way to save and share your web content in a unique format.

If you have any questions or need further clarification, please comfortable to ask. Enjoy converting your HTML into images! 💖🐼

this is so cute, like a tiny adventurer


Frolicking and flower picking 🌼
yes, because professional experience = learning o(^o^)o



does it still count as studyblr content when it’s professional development
learning calculus (one) is easier in university than in high school tbh. there's more support and office hours to help you out. but the practice problems are so much more complex to implement. But at least I'm not forced to teach myself like in high school. I'm slowly getting more confident in math o(^o^)o

so aesthetic! and the post helped me find the model of the keyboard I've been wanting to invest in, lol

Why does my desk always get so messy when I'm doing computer networks lab work lol