Jump to content
You must now use your email address to sign in [click for more info] ×

Inpainting Not Working Correctly


Recommended Posts

I don’t know if I’ve discovered a bug or simply an idiosyncrasy of El Capitan but I’ve been able to duplicate this “glitch” several times on 4 different images;

 

Used Crop to Rotate (and straighten) the image as shown.  Then used the InPainting Tool, beginning with the top right corner down to about halfway.  Worked fine.  The bottom right corner worked better on a subsequent image than it did on this one.  I haven’t been able to duplicate the green effect in the bottom left corner.  InPainting worked correctly there on the next attempt.  However, in all of the attempts, on all of the images, this is what happens trying to InPaint from the top left corner.  It goes this far and hangs!  And the only option is to Force Quit.  I have waited for as long as 3 minutes (Solitare on the ipad helps to pass the time) waiting to see if it would unhang and continue.  

 

As a side note, those little irritations (like having to close the Left Studio and then Use Cmd/0 to enlarge your image…every time!) become major irritations when repeated and repeated and repeated while trying to pin down a problem.

 

 

 

 

post-3503-0-77313400-1495910719_thumb.jpg

Link to comment
Share on other sites

Did you rasterize the image after cropping and rotating/straightening? I've had problems persuading inpainting to work on the Windows version of the app unless I do this.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

Alfred, I didn't crop.  I just used Crop to Straighten.  And I didn't rasterize.  Maybe that's the problem.  I'll give it another try after a bit.  Right now, I'm really tired of mucking with it.  Thanks for the suggestion.  Not knowing why is every bit as frustrating as not knowing how.

Link to comment
Share on other sites

Sorry, Lille, I slightly misspoke. When I referred to "cropping and rotating/straightening" I really just meant using the 'Straighten' button that appears on the Context toolbar when you choose the Crop Tool. As far as I recall, I didn't crop as such.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

HI LilleG, I saw your post and have come upon the same problem.  In my thoughts it seemed that the fill area was devoid of anything that the algorithm could use so I tried attaching a pixel layer above, making sure that Current layer and below was picked and then used the inpainting tool on the pixel layer.  It works for me that way.  

 

Have you experimented with the stabilizer assistant in this tool.  Pretty cool, although I don't know if I am using it correctly.

Link to comment
Share on other sites

Sorry, Lille, I slightly misspoke. When I referred to "cropping and rotating/straightening" I really just meant using the 'Straighten' button that appears on the Context toolbar when you choose the Crop Tool. As far as I recall, I didn't crop as such.

 

I forget that the Straighten option is there.  Always hated that kind of Straightening thing in Capture NX.  I have a very good eye for level and I do much better just using the top arrow to rotate the canvas till it looks right.  I will try rasterizing though. 

Link to comment
Share on other sites

Alfred, Rasterizing did the trick!  So many thanks for the suggestion.  

 

And thanks for yours, p_mac.  What puzzled me was that it had as much information to work with on the one it wouldn't do as it did with the ones that it would.  Huh, I hadn't even realized that the inpainting tool had a stabilizer function.  I guess it could be useful in some tight picky spaces.  I'll give it a try next time I run into that kind of situation.

Link to comment
Share on other sites

Alfred, Rasterizing did the trick!  So many thanks for the suggestion.  

I am not suggesting that this is the same as your problem, but there has always been a bit of an oddity about using InPainting after using the crop tool to rotate an image for straightening.

 

As best I can figure it AP rotates the visible image but leaves an underlying internal layer (which are not visible) alone. Then, when I have InPainted after that rotate, AP seems to have always taken data from the underlying unrotated layer at the location specified on the rotated image. Since the two locations are different, one rotated and one not, the wrong data gets used in the InPainting. I reported this issue a very long time ago and was told to either rasterize the image or flatten it to fix the problem.

 

It struck me as interesting that you are seeing a different problem with the same solution.

Link to comment
Share on other sites

I think 9/10s of the problems I've had adjusting...trying to adjust...to Affinity have been caused by the Crop tool!  It's been the biggest waster of my time that I've ever encountered in any program.  I love Affinity, or at least I want to, and I understand the need to differentiate it from Photoshop but re-inventing the wheel just to put lumps on it is not an improvement.  Crop and Resize Canvas have both taken an idiot-simple process in Photoshop and turned it into an unintuitive---if you're coming from Photoshop and after all, Photo is aiming to pull former Photoshop users---multi-step exercise in frustration.  

 

Rant over.

Link to comment
Share on other sites

I have noticed the same issue with inpainting. I addition, if I use any of my Topaz plugins after rotating, the filter UI displays the image that preceded rotation. 

Have you tried either Rasterizing or flattening the image before the call? That is what I started to do when I saw odd behavior from Topaz after a crop straightening.

Link to comment
Share on other sites

  • 2 months later...

Here's my fix:

Process:

  • Layer/Rasterise…

  • Select/Alpha Range/Select Opaque

  • Select/Invert Pixel Selection

  • Edit/Inpaint

  • Select/Deselect

Macro to do this in one click attached.

Dave's Alpha Inpaint.afmacros

Dave Straker

Cameras: Sony A7R2, RX100V

Computers: Win10: Chillblast i9 Custom + Philips 40in 4K & Benq 23in; Surface Pro 4 i5; iPad Pro 11"

Favourite word: Aha. For me and for others.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.