1. A method for editing a digital image in an image editing device, comprising: obtaining an inpainting region in the digital image; determining a target resolution and at least one intermediate resolution for scaling a resolution of the digital image based on an original resolution of the digital image; scaling the resolution of the digital image to the intermediate resolution level; determining whether to perform partial inpainting of the inpainting region at the intermediate resolution level; based on the determination of whether to perform partial inpainting, performing partial inpainting at the intermediate resolution level; and at a final target resolution, performing inpainting on a remainder portion in the inpainting region, wherein the target resolution is determined according to the following expression: 
 rf =min(32 /d , 1), wherein rf represents a downscale ratio, and wherein d represents a thickness of the inpainting region measured in pixels.