Trouble with My Photo Editing Project Using Lovable

0
7
Asked By CreativeWanderer67 On

Hi everyone! I'm not a programmer, but I've been using Lovable to build my projects, and it's been going pretty well until now. I'm currently trying to create an online photo editor for a business idea I have. It's essentially a simpler version of Photopea and Photoshop. One feature I want is to click on an image in my workspace—like a big rock in a field—and have it outline that rock with 'marching ants' and give me some options like deleting it, having AI fill it in, or just copying the rock itself.

Initially, this feature worked really well; the rock copied perfectly, including filling in any covered areas with the help of AI. However, things have taken a turn for the worse, and I can't seem to get it to function as it used to, no matter what I try. I'm using PixiJS as my engine and I'm left wondering whether I've set it up wrong or if PixiJS just isn't the right choice for these tasks. When I ask AI for alternatives, they often suggest FabricJS, but their responses aren't very clear on whether it's better.

Any suggestions on what I could do? I really appreciate any help!

5 Answers

Answered By CodeMaster42 On

It sounds like you’ve got a classic case of ‘spaghetti code’ going on. Adding more functions can really clutter the codebase, especially with AI-managed coding. You could ask Lovable to do a code review focusing on cleaning up complexity. Making your code more organized could help prevent issues like this in the future.

Answered By BrainyBot On

I don't know much about Lovable, but you should definitely implement some kind of checkpoint system. With a tool like Git, you can create 'commits' that serve as safety nets. If something breaks, you can simply roll back to the last working state. It's a great way to keep track of changes without losing your progress. If this interests you, I recommend asking an AI how to set up Git for your project. Good luck!

Answered By TechieTinker On

You might want to reverse-engineer what had been working before. If Lovable uses version control like Git, you could ask AI to check what changes were made between the working version and now. You could even use 'git bisect' to find the exact change that broke your feature. That way, you can pinpoint where things went off track.

Answered By CuriousCoder123 On

It sounds like you're dealing with typical issues that come up in coding projects, especially when things get more complex. Since you've had it working before, it should be possible to fix it. I’d suggest learning a bit of programming or at least hiring a developer who can help streamline your code and manage complexity better.

Answered By PixelPioneer On

Are you using Git for your project? If so, you can revert back to any working version. Having that control can save you a lot of headaches when something goes wrong as you can always go back to a state where things worked just fine.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.