Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Removing current clipping
-
Hi,
is there any way to remove clipping path? I haven't found any specific method so I've tried to set a new clipping to the size of full image, but it did not help. It looks like the clip can only be shrinked more and more but never enlarged. Or did I missed something?Thanks for any help.
# set clip ui_path = ui.Path.rect(x, y, width, height) ui_path.add_clip() # remove clip ui_path = ui.Path.rect(0, 0, full_width, full_height) ui_path.add_clip()
-
From the docs, it would seem that add_clip can only shrink the clipping area.
maybe try using Gstate() to undo the effects:
with Gstate(): ui.Path.add_clip() #other clipped drawing ..... #unclipped drawing here
-
Thanks, that works. Unfortunately I cannot use the "with..." directly but storing the state and using state.enter() and state.exit() does exactly what I need. Would be nicer to use something like state.save() and state.restore() but I have not found anything like this.
Thanks again.
-
Digitally restoring old photos is the best solution to save vintage photos from wear and tear. Sometimes the individuals are able to hold on to the cherished moments of their lives by working hard to restore old photos. To restore old photos, professional editors ensure that the various rips, tears and cracks evident in the photos are completely eliminated. Further, we also need to eliminate the scribbles contained in old photos.
For restoring the old image you have to go through some specific steps in Photoshop. It would be better for you if you can follow some tutorials on that. Photoshop can help out to restore old photos without trailing the originality. The color in faded photographs can also be restored to create a fresh and colored replica of any old photo. Distractions present in these photos are also removed. The process of restoring old photos also addresses issues with the photos perspective. The process will correct the perspective of any old photo.
The expert team of graphic specialist and image editors who can do edit and deliver quality images that includes professional photo retouching, photo restoration, image background removal, image masking, image enhancement, raster to vector and image clipping path services.