Image Editor not working

https://perchance.org/7qs1iwql1u

Anyone know why this isn't working?

6 points · 2 comments · view on lemmy.world

2 Comments

VioneT@lemmy.world · 1 pts · 1y
There is no "Image to Image" or "AI Image Editor" working in Perchance.

Looking at the code, it is generated through the AI code helper in which there are these sections:

  // AI Remove Object
  removeBtn.addEventListener('click', async function() {
    showLoading('Removing objects with AI...');
    
    // Simulate AI processing
    setTimeout(() => {
      if (selectedArea.isActive && selectedArea.width !== 0 && selectedArea.height !== 0) {
        // For demo: fill selection with a gradient (simulating AI inpainting)
        const gradient = ctx.createLinearGradient(
          selectedArea.x, selectedArea.y, 
          selectedArea.x + selectedArea.width, selectedArea.y + selectedArea.height
        );
  ...
  // Simulate AI object extraction
    setTimeout(() => {
      const img = new Image();
      img.onload = function() {
        // Scale the image

Which is why it doesn't work.

Koto@lemmy.world · 1 pts · 1y

Flux Kortex is perfect for image to image. I recommend installing it locally, amazing stuff.