Cropping and slicing a path - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Cropping and slicing a path (/Thread-Cropping-and-slicing-a-path) |
RE: Cropping and slicing a path - Ottia Tuota - 03-31-2021 Thank you! At the first glance these seem to come from the same bug. Will be fixed. RE: Cropping and slicing a path - Ottia Tuota - 03-31-2021 I think I fixed the bug. Krikor, could you please try again. The new version is 0.7: http://kmarkku.arkku.net/Path_crop_files/Gimp_master.html I also managed to abandon the get_pixel() operations and use a pixel region instead. The running time came down from 31 seconds to 10.5 seconds. Fine. Now the biggest consumers of time are (1) working with pixels, and (2) my own polynomial solving algorithm. Both could be optimized. But it will not happen now. I hope I can now go to my next project. RE: Cropping and slicing a path - denzjos - 03-31-2021 Ottia Tuota, so far, the plugin is working fine for me. [attachment=5821] RE: Cropping and slicing a path - Ofnuts - 03-31-2021 I never thought that my Truchet script would find such uses RE: Cropping and slicing a path - denzjos - 03-31-2021 Even Sébastien Truchet didn't thought it would ever get that far... RE: Cropping and slicing a path - Krikor - 03-31-2021 (03-31-2021, 07:03 AM)Ottia Tuota Wrote: I think I fixed the bug. Krikor, could you please try again. The new version is 0.7: After installing version 0.6 that had bugs, I was temporarily without the plug-in, since when installing I overwrote the file. With version 0.7 the fun was safe, with no surprises (Warnings). Also noticeably faster than the previous version. [attachment=5822][attachment=5823] Thx. NOTE: ehhh ... it was difficult to post this Quote above, I needed to use Ctrl + C and Ctrl + V. The text of another post on the previous page was coming. RE: Cropping and slicing a path - Krikor - 04-01-2021 Hi Ottia Tuota, Could you please check if the "Crop path by circle" plug-in is working correctly after the latest updates? In a situation identical to post #9, where I have two paths, one the Truchet and the other a line segment with two anchors (regardless of whether I use this segment as radius or diameter of the circle) I always get the message below: Traceback (most recent call last): File "D: \ Gimp21021 \ Gimp-2.10.21_Portable-32-64bit-Win \ lib \ gimp \ 2.0 \ python / gimpfu.py", line 741, in response dialog.res = run_script (params) File "D: \ Gimp21021 \ Gimp-2.10.21_Portable-32-64bit-Win \ lib \ gimp \ 2.0 \ python / gimpfu.py", line 362, in run_script return apply (function, params) File "D: \ Gimp21021 \ InventoryGimp \ Scripts \ Active Scripts \ PluginsUse \ crop_path.py", line 2974, in crop_path_by_circle_main crop_input_data) TypeError: crop_path_by_CorS () takes exactly 2 arguments (3 given) From the message, I thought my line segment could have 3 anchors. But I checked and there are only two anchors. Path summary Warning Path "Unnamed" [1]: (400.0, 400.0) <- 2: 311.5: OPN -> (400.0, 88.5) Thanks. RE: Cropping and slicing a path - Ottia Tuota - 04-01-2021 Thanks for your help. That error message made the problem quite clear. Lousy work, nothing else. The plugins "Crop by circle" and "Crop by general selection" use some common parts. I removed from one function an unused argument and forgot to check all calls to that function. The fixed version is 0.8 in the same place: http://kmarkku.arkku.net/Path_crop_files/Gimp_master.html I hope it is now all right. RE: Cropping and slicing a path - Krikor - 04-01-2021 (04-01-2021, 06:23 AM)Ottia Tuota Wrote: Thanks for your help. That error message made the problem quite clear. Lousy work, nothing else. The plugins "Crop by circle" and "Crop by general selection" use some common parts. I removed from one function an unused argument and forgot to check all calls to that function. Quote:Posted by Ofnuts - Yesterday, 04:00 PM And I didn't think I knew how to use the plug-in anymore. I tried several times until I gave up and threw in the towel. Now with version 0.8 the plug-in is really ok. I took the opportunity to test warp_path.py again. [attachment=5824] Again ofn-truchet-path.py co-starring. Thanks for the quick repair of the plug-in. RE: Cropping and slicing a path - Ofnuts - 04-01-2021 (04-01-2021, 08:47 AM)Krikor Wrote:(04-01-2021, 06:23 AM)Ottia Tuota Wrote: Thanks for your help. That error message made the problem quite clear. Lousy work, nothing else. The plugins "Crop by circle" and "Crop by general selection" use some common parts. I removed from one function an unused argument and forgot to check all calls to that function. Nice... |