honeynebula - Forevermore a Humanist Romantic
Forevermore a Humanist Romantic

studyblr • stemblr • codeblr • progblr • swiftie • writer • computer science & computer engineering

75 posts

Honeynebula - Forevermore A Humanist Romantic

honeynebula - Forevermore a Humanist Romantic
honeynebula - Forevermore a Humanist Romantic
  • thiskidlovesfruit
    thiskidlovesfruit liked this · 7 months ago
  • savagewidow12
    savagewidow12 reblogged this · 7 months ago
  • savagewidow12
    savagewidow12 liked this · 7 months ago
  • indulgeinluxuries
    indulgeinluxuries reblogged this · 7 months ago
  • soleic
    soleic reblogged this · 7 months ago
  • cinnamonscentedstress
    cinnamonscentedstress liked this · 7 months ago
  • agentdaedalus
    agentdaedalus reblogged this · 7 months ago
  • agentdaedalus
    agentdaedalus liked this · 7 months ago
  • rickeyrasta
    rickeyrasta liked this · 7 months ago
  • terryswayzer
    terryswayzer liked this · 7 months ago
  • fluorene
    fluorene liked this · 7 months ago
  • sunseeker-sightseer
    sunseeker-sightseer liked this · 7 months ago
  • daprogrammer
    daprogrammer liked this · 7 months ago
  • watszittooyah
    watszittooyah liked this · 7 months ago
  • ayoashdgaf
    ayoashdgaf reblogged this · 7 months ago
  • ayoashdgaf
    ayoashdgaf liked this · 7 months ago
  • kxngshxt
    kxngshxt liked this · 7 months ago
  • retalhoserelapsos
    retalhoserelapsos liked this · 7 months ago
  • momentomori
    momentomori liked this · 7 months ago
  • maximumbluebirdwizard
    maximumbluebirdwizard liked this · 7 months ago
  • delusionalsunsett
    delusionalsunsett liked this · 7 months ago
  • h0neyandthemoon
    h0neyandthemoon liked this · 7 months ago
  • paradoxography
    paradoxography liked this · 7 months ago
  • nothingbutshapes
    nothingbutshapes reblogged this · 7 months ago
  • seasetdreams
    seasetdreams reblogged this · 7 months ago
  • passionfruit-papi
    passionfruit-papi liked this · 7 months ago
  • sunpotent
    sunpotent liked this · 7 months ago
  • solefulsidewalks
    solefulsidewalks liked this · 7 months ago
  • blissforangel
    blissforangel reblogged this · 7 months ago
  • sheermal
    sheermal liked this · 7 months ago
  • knittedwithhope
    knittedwithhope reblogged this · 7 months ago
  • dreemvur
    dreemvur liked this · 7 months ago
  • 05291997
    05291997 reblogged this · 7 months ago
  • museofh3r
    museofh3r liked this · 7 months ago
  • batistalee
    batistalee liked this · 7 months ago
  • geminisfinest
    geminisfinest liked this · 7 months ago
  • richblackgrl
    richblackgrl reblogged this · 7 months ago
  • the-magicians-map
    the-magicians-map reblogged this · 7 months ago
  • user666111
    user666111 reblogged this · 7 months ago
  • bearlyadoctor
    bearlyadoctor reblogged this · 7 months ago
  • stormiidayz
    stormiidayz liked this · 7 months ago
  • fineassvikings
    fineassvikings reblogged this · 7 months ago
  • fineassvikings
    fineassvikings liked this · 7 months ago
  • manal2424
    manal2424 reblogged this · 7 months ago
  • kttycats
    kttycats liked this · 7 months ago
  • bitchimrawlikethat
    bitchimrawlikethat reblogged this · 7 months ago
  • bitchimrawlikethat
    bitchimrawlikethat liked this · 7 months ago
  • caringloving
    caringloving liked this · 7 months ago
  • 852hertz
    852hertz reblogged this · 7 months ago
  • youremyearth
    youremyearth liked this · 7 months ago

More Posts from Honeynebula

7 months ago

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

Learning Calculus (one) Is Easier In University Than In High School Tbh. There's More Support And Office

Tags :
8 months ago

great art style ( ・∇・)

Mane 6

mane 6

7 months ago

Convert HTML to Image: A Step-by-Step Guide ✨

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 🐼

Convert HTML To Image: A Step-by-Step Guide

💛 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:

Convert HTML To Image: A Step-by-Step Guide

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:

Convert HTML To Image: A Step-by-Step Guide

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

Convert HTML To Image: A Step-by-Step Guide

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

Convert HTML To Image: A Step-by-Step Guide

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:

Convert HTML To Image: A Step-by-Step Guide

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:

Convert HTML To Image: A Step-by-Step Guide

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.

Convert HTML To Image: A Step-by-Step Guide

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

Convert HTML To Image: A Step-by-Step Guide

Tags :
1 year ago

My apologies for the inactivity. Many things have been hectic. But, hopefully I'll be able to work towards becoming active consistently again. Thanks.

~honeynebula


Tags :
11 months ago

rarity, my favorite ✨️

A Rarity Moodboard

A Rarity Moodboard 🎀


Tags :