Can image data be classified as an NFT without implementing ERC721?

Hey everyone! I’m working on a Solidity project and I’m a bit confused about NFTs. My contract has a struct for images with fields like image, title, description, and price. Users can input this info from the frontend.

I’m wondering if I let people buy and sell these image posts, would they count as NFTs? Or do I have to use ERC721 and put the metadata somewhere else?

Right now, I’m just storing the data in a struct instead of using ERC721 with separate metadata. I’m not sure if this is the right way to go.

Can anyone help me understand if my current setup could be considered NFTs, or if I need to change things? Thanks in advance for any advice!

hey there WhisperingTree! ur project sounds super interesting :slight_smile: so, ur not using ERC721 but still wanna make something NFT-like, right? that’s totally doable!

the big thing is making sure each image is unique and ppl can prove they own it. without ERC721, u gotta be extra careful about how u track who owns what.

have u thought about how ur gonna handle transfers? that’s gonna be key. also, storing all that image data on-chain might get expensive real fast :o

maybe u could look into other ways to make ur images special? like, giving each one a unique ID or something?

btw, what made u decide to go this route instead of ERC721? I’m super curious about ur thought process! :smiley:

oh, and have u considered using something like IPFS for storing the actual image data? might save u some headaches down the road.

anyways, keep us posted on how it goes! this sounds like a cool project and I’d love to hear more about it as u figure things out!

While your current setup isn’t strictly an NFT in the traditional sense, it’s not far off. The key is ensuring uniqueness and clear ownership. Without ERC721, you’re essentially creating a custom token system. This can work, but you’ll need to implement mechanisms to guarantee each image is unique and ownership can be verified and transferred.

Consider the trade-offs. ERC721 offers wide compatibility and established security, but your custom approach might be more flexible for your specific needs. If you stick with your current method, focus on robust ownership tracking and transfer functions. Also, think about how you’ll handle storage - on-chain data can get expensive fast.

Ultimately, while ERC721 is the standard, NFTs are more about the concept of unique digital ownership than any specific implementation. Your approach could work, but carefully weigh the pros and cons before proceeding.

hey mate, ur setup ain’t technically an NFT but it’s close. u could make it work if u ensure each image is unique and traceable. but ERC721 gives u better compatibility and security. without it, focus on ownership tracking and transfers. consider storage costs too - on-chain data gets pricey fast. weigh pros/cons carefully before deciding!