Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

Generating Animated Crypto PFPs

Neerav Mehta

Founder & CEO

In this article, we will discuss how to generate animated crypto PFPs.

Generating PFPs is done via a combination of base layers such as the background, body, face, attire, accessories, etc. However, developing the final images needs to be automated because PFP NFTs are released as a collection, often exceeding 10,000 in number. That's where the PFP art generators come into the picture.

Examples of Layers:
Flow Chart

Read on to discover how the HashLips art engine can be updated to generate a collection of animated PFPs, which can then be minted into NFTs.

Problem/Goal

In order to create PFPs with animated backgrounds, there are different solutions. Among the solutions, the HashLips art engine (https://github.com/HashLips/hashlips_art_engine) is one of the most popular, freely available PFP art generators available online. This generator combines multiple image files, often PNGs, to generate PFP collections.

However, the HashLips art engine doesn't support animated backgrounds. Moreover, there are no other readily available solutions.

Solution

Most of the features of the HashLips art engine are useful. So, the ideal solution is to update the engine to support animated backgrounds. To achieve that, we can leverage the brilliant 'sharp' library https://sharp.pixelplumbing.com/.

This is how we are able to create gifs with sharp:

await sharp(baseLayerPath, {
  animated: true,
})
.composite(otherLayers)
.toFile(`${buildDir}/images/${sha1(newDna)}.gif`);

We also have to edit src/main.js in other places, but the most important part is replacing the canvas library with sharp.

Results

The updated code makes it possible to generate 1000s of images using the animations and the other base layers already possessed. In addition, these animated GIF images make it possible to create an animated NFT collection.

Conclusion

Creating these images and minting them into NFTs is a growing trend among artists, creators, collectors, and businesses. We at Red Crackle can help you create your collection of PFPs or any range of custom IT solutions for your needs. To get started, you may email us your requirements at [email protected].

Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Tips For Entrepreneurs In 2015

10 Tips For Entrepreneurs In 2015

Learn more

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2023 RedCrackle. All rights reserved.