How BotFi Achieved a 100x Speed Boost by Optimizing NFT Images
Published: 2023-10-08 22:33:01

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zvasapd58bgfs4dqkqg6.jpg)
In the dynamic realm of Non-Fungible Tokens (NFTs), where rapidity and user satisfaction are pivotal, BotFi has achieved a remarkable feat by transforming the landscape of NFT image loading. Through a methodical journey of optimization and ingenuity, BotFi has achieved a staggering 100-fold enhancement in NFT image load times, revolutionizing the browsing experience for users across the globe.

At the core of this groundbreaking transformation lies BotFi's NFT metadata indexer, a meticulous tool designed to gather NFT data from diverse sources, employing a combination of off-chain and on-chain strategies. During this data compilation process, a pressing issue came to light: the majority of NFTs harbored unoptimized images, causing a significant delay in users' loading times and subsequently tarnishing their browsing experience.

{% embed https://www.youtube.com/watch?v=cT4I4Dg8MOU %}

In response to this challenge, the committed team at BotFi embarked on a mission to create an avant-garde solution. The result was a pioneering engine, meticulously crafted using Node.js, Sharp.js, and Brotli. Its purpose was to convert all NFT images into the highly efficient WebP format, boasting an impressive compression rate of 65%.

This strategic innovation proved to be a game-changer, dramatically reducing the file size of larger images by an astonishing 5 to 10 times. Remarkably, this optimization did not compromise the quality or animation of the images, ensuring that users continued to savor the visual richness that NFTs are celebrated for.

BotFi's image optimization engine adopts a multifaceted approach. Images undergo resizing into two dimensions: the smaller dimension, measuring 250px by 250px, is tailored for thumbnails, with a target size capped at 10kb. Meanwhile, the larger dimension, at 400px by 400px, is primed for display on collection or NFT item pages, with an impressive target size limit of 20kb.

In addition to resizing, these finely-tuned images undergo Google's state-of-the-art Brotli compression algorithm, guaranteeing not only the most compact file sizes but also optimal speed and seamless delivery to users.

The impact of BotFi's tireless endeavors cannot be overstated. By elevating image load times to this magnitude, BotFi has not only enriched the user experience but has also ushered in a realm of possibilities for NFT collectors, traders, and enthusiasts. With images loading faster than ever before, users can traverse NFT collections effortlessly, making the NFT ecosystem accessible and enjoyable for all.

In conclusion, BotFi's extraordinary accomplishment in enhancing NFT image load times by a factor of 100 underscores their dedication to innovation and excellence in the NFT domain. Through their pioneering strides in image optimization, they have set a new benchmark for NFT platforms, showcasing that speed and quality can seamlessly coexist. As the NFT landscape continues its evolution, BotFi's contributions are poised to act as a catalyst, fostering a more vibrant and user-friendly NFT ecosystem.

— — — — — — —

BotFi stands as the pioneer in self-custody DeFi trading bots for Telegram and Messenger, offering a plethora of advanced features. These include instant swaps, limit orders, mirror trading, token scanner, sniping bot, and a host of other capabilities.

Website: [https://botfi.app](https://botfi.app)
Telegram: [https://t.me/botfi_app](https://t.me/botfi_app)
Twitter: [https://twitter.com/botfi_app](https://twitter.com/botfi_app)
GitHub: [https://github.com/botfi-app](https://github.com/botfi-app)