Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arrow Script
#70
(10-08-2022, 07:20 PM)programmer_ceds Wrote:
(10-07-2022, 09:42 PM)BugsBunnySan Wrote: Hi!

I think I found a bug in this script (which is otherwise pretty awesome Big Grin):

I've attached an image that shows an arrow with the problem and one where it's fixed and looks good: ...

I think that I have followed the steps that you list above (with GIMP V2.10.32 and the version of arrow.scm dated 29/7/2021) and the arrow seems to be drawn correctly in both steps 4 and 6. I don't get an extraneous arrow head as a result of step 4.

What are the sizes of the original Arrows layer and the new canvas size? Also rough coordinates for the two points of the path?

I found what causes it more precisely, as I moved the existing content in the Image->Canvas Size resizing tool (to center it). Sorry, I forgot to mention this in my original post!

Also, if the Arrows layer (created in step 2) is moved about inside the canvas after Image->Canvas Size, that causes the arrowhead to not be drawn where the path ends as well.

If the Arrows layer is not moved from the origin (top left corner of the image), even though it is still smaller than the canvas size, then the arrowhead is in the right position, so maybe the issue is with the layer being offset from the image origin? I tested this just now, and if I move the Arrows layer, e.g., 60 pixels to the right, the arrowhead will also be offset 60 pixels to the right from where the path ends, so my guess is, the Arrows layer offset is added twice to the arrowhead position somehow...

Oh, also, to answer your question: the original Arrows layer (and image) I created as 640x640 in the example, then resized to 720x720 and I then moved the Arrows layer to approximately the middle of the image. (In the image I was working on when I noticed the bug, it was different sizes, which I've since changed further, but it was something like 3k to 4k resolution I think.)
Reply


Messages In This Thread
Arrow Script - by rich2005 - 03-01-2017, 11:04 AM
RE: Arrow Script - by dinasset - 03-01-2017, 12:35 PM
RE: Arrow Script - by StrummerG - 01-23-2019, 08:44 PM
RE: Arrow Script - by rich2005 - 01-23-2019, 08:51 PM
RE: Arrow Script - by programmer_ceds - 01-24-2019, 04:48 PM
RE: Arrow Script - by programmer_ceds - 01-24-2019, 07:41 PM
RE: Arrow Script - by rich2005 - 01-24-2019, 05:06 PM
RE: Arrow Script - by Asgeirjonsson - 03-27-2020, 10:28 AM
RE: Arrow Script - by rich2005 - 03-27-2020, 11:17 AM
RE: Arrow Script - by Asgeirjonsson - 03-27-2020, 02:07 PM
RE: Arrow Script - by Krikor - 03-27-2020, 03:19 PM
RE: Arrow Script - by rich2005 - 03-27-2020, 03:27 PM
RE: Arrow Script - by rich2005 - 03-27-2020, 04:02 PM
RE: Arrow Script - by Krikor - 03-27-2020, 04:38 PM
RE: Arrow Script - by rich2005 - 03-27-2020, 04:58 PM
RE: Arrow Script - by Krikor - 03-27-2020, 07:11 PM
RE: Arrow Script - by rich2005 - 03-27-2020, 07:34 PM
RE: Arrow Script - by Krikor - 03-27-2020, 07:49 PM
RE: Arrow Script - by denzjos - 03-28-2020, 10:23 AM
RE: Arrow Script - by Krikor - 03-31-2020, 10:11 PM
RE: Arrow Script - by rich2005 - 04-01-2020, 12:02 PM
RE: Arrow Script - by Krikor - 04-01-2020, 07:41 PM
RE: Arrow Script - by jcwjcw42 - 12-10-2020, 10:31 PM
RE: Arrow Script - by carmen - 12-10-2020, 11:42 PM
RE: Arrow Script - by jcwjcw42 - 12-11-2020, 03:51 AM
RE: Arrow Script - by Krikor - 12-11-2020, 08:51 AM
RE: Arrow Script - by rich2005 - 12-11-2020, 10:44 AM
RE: Arrow Script - by denzjos - 12-12-2020, 04:29 PM
RE: Arrow Script - by programmer_ceds - 05-06-2021, 10:26 PM
RE: Arrow Script - by programmer_ceds - 05-07-2021, 06:29 AM
RE: Arrow Script - by programmer_ceds - 05-07-2021, 05:12 PM
RE: Arrow Script - by rich2005 - 05-07-2021, 06:00 PM
RE: Arrow Script - by programmer_ceds - 05-07-2021, 09:51 PM
RE: Arrow Script - by rich2005 - 05-08-2021, 07:22 AM
RE: Arrow Script - by Krikor - 05-08-2021, 01:10 AM
RE: Arrow Script - by programmer_ceds - 05-08-2021, 09:38 AM
RE: Arrow Script - by rich2005 - 05-08-2021, 09:52 AM
RE: Arrow Script - by programmer_ceds - 05-08-2021, 10:07 AM
RE: Arrow Script - by rich2005 - 05-08-2021, 10:16 AM
RE: Arrow Script - by programmer_ceds - 05-08-2021, 04:04 PM
RE: Arrow Script - by rich2005 - 05-08-2021, 04:54 PM
RE: Arrow Script - by Histone - 07-26-2021, 11:50 AM
RE: Arrow Script - by programmer_ceds - 07-26-2021, 12:29 PM
RE: Arrow Script - by rich2005 - 07-26-2021, 12:26 PM
RE: Arrow Script - by Histone - 07-26-2021, 12:57 PM
RE: Arrow Script - by programmer_ceds - 07-26-2021, 01:21 PM
RE: Arrow Script - by Histone - 07-26-2021, 01:56 PM
RE: Arrow Script - by programmer_ceds - 07-26-2021, 05:11 PM
RE: Arrow Script - by Histone - 07-26-2021, 08:57 PM
RE: Arrow Script - by programmer_ceds - 07-26-2021, 09:31 PM
RE: Arrow Script - by Histone - 07-26-2021, 10:01 PM
RE: Arrow Script - by programmer_ceds - 07-27-2021, 04:37 PM
RE: Arrow Script - by Histone - 07-28-2021, 03:27 AM
RE: Arrow Script - by programmer_ceds - 07-28-2021, 08:46 AM
RE: Arrow Script - by programmer_ceds - 07-28-2021, 04:09 PM
RE: Arrow Script - by programmer_ceds - 07-29-2021, 09:08 AM
RE: Arrow Script - by rich2005 - 07-29-2021, 01:53 PM
RE: Arrow Script - by Histone - 08-08-2021, 08:56 PM
RE: Arrow Script - by programmer_ceds - 08-09-2021, 10:04 AM
RE: Arrow Script - by vitforlinux - 09-01-2022, 11:17 AM
RE: Arrow Script - by programmer_ceds - 09-01-2022, 12:25 PM
RE: Arrow Script - by rich2005 - 09-01-2022, 12:22 PM
RE: Arrow Script - by vitforlinux - 09-01-2022, 02:26 PM
RE: Arrow Script - by programmer_ceds - 09-01-2022, 03:48 PM
RE: Arrow Script - by programmer_ceds - 09-01-2022, 07:09 PM
RE: Arrow Script - by programmer_ceds - 09-04-2022, 03:44 PM
RE: Arrow Script - by vitforlinux - 09-05-2022, 11:16 AM
RE: Arrow Script - by BugsBunnySan - 10-07-2022, 09:42 PM
RE: Arrow Script - by programmer_ceds - 10-08-2022, 07:20 PM
RE: Arrow Script - by BugsBunnySan - 10-08-2022, 08:18 PM
RE: Arrow Script - by programmer_ceds - 10-11-2022, 04:44 PM
RE: Arrow Script - by teapot - 10-12-2022, 02:17 AM
RE: Arrow Script - by programmer_ceds - 10-12-2022, 04:46 PM
RE: Arrow Script - by BugsBunnySan - 10-12-2022, 09:11 PM
RE: Arrow Script - by teapot - 10-13-2022, 03:16 AM
RE: Arrow Script - by programmer_ceds - 10-13-2022, 07:33 AM
RE: Arrow Script - by programmer_ceds - 10-13-2022, 01:13 PM
RE: Arrow Script - by BugsBunnySan - 10-14-2022, 01:17 AM
RE: Arrow Script - by teapot - 10-13-2022, 10:54 PM
RE: Arrow Script - by programmer_ceds - 10-14-2022, 10:24 AM
RE: Arrow Script - by programmer_ceds - 10-25-2022, 04:35 PM
RE: Arrow Script - by teapot - 10-26-2022, 03:25 AM
RE: Arrow Script - by programmer_ceds - 10-26-2022, 09:58 AM
RE: Arrow Script - by teapot - 10-26-2022, 05:30 PM
RE: Arrow Script - by programmer_ceds - 10-26-2022, 09:57 PM
RE: Arrow Script - by programmer_ceds - 11-27-2022, 06:23 PM
RE: Arrow Script - by kyolim - 02-02-2023, 06:39 PM
RE: Arrow Script - by programmer_ceds - 02-02-2023, 07:37 PM
RE: Arrow Script - by kyolim - 10-24-2023, 08:02 PM
RE: Arrow Script - by rich2005 - 10-24-2023, 08:40 PM
RE: Arrow Script - by vitforlinux - 10-03-2023, 02:02 PM
RE: Arrow Script - by programmer_ceds - 10-03-2023, 04:40 PM
RE: Arrow Script - by programmer_ceds - 12-24-2023, 05:07 PM
RE: Arrow Script - by vitforlinux - 10-04-2023, 11:12 AM
RE: Arrow Script - by vitforlinux - 10-25-2023, 03:28 PM
RE: Arrow Script - by ChrisHammond56 - 01-06-2024, 12:48 PM
RE: Arrow Script - by rich2005 - 01-06-2024, 01:07 PM
RE: Arrow Script - by programmer_ceds - 01-06-2024, 06:18 PM
RE: Arrow Script - by ChrisHammond56 - 01-07-2024, 01:23 AM
RE: Arrow Script - by programmer_ceds - 02-18-2024, 05:00 PM
RE: Arrow Script - by vitforlinux - 03-01-2024, 01:15 PM
RE: Arrow Script - by programmer_ceds - 03-01-2024, 04:59 PM
RE: Arrow Script - by PixLab - 03-02-2024, 04:46 AM
RE: Arrow Script - by programmer_ceds - 03-02-2024, 10:30 AM
RE: Arrow Script - by PixLab - 03-03-2024, 06:37 AM
RE: Arrow Script - by vitforlinux - 03-05-2024, 02:49 PM

Forum Jump: