| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
| X-Recipient: | geda-user AT delorie DOT com |
| X-Mailer: | exmh version 2.8.0 04/21/2012 with nmh-1.7+dev |
| X-Exmh-Isig-CompType: | repl |
| X-Exmh-Isig-Folder: | inbox |
| From: | "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
| To: | geda-user AT delorie DOT com |
| Subject: | Re: [geda-user] PCB silk layer image script |
| In-reply-to: | <6877754c-dcb7-db34-dd39-419de060ad7a@linetec.nl> |
| References: | <6877754c-dcb7-db34-dd39-419de060ad7a AT linetec DOT nl> |
| Comments: | In-reply-to "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
| message dated "Sun, 01 Oct 2023 15:11:47 +0200." | |
| Mime-Version: | 1.0 |
| Message-Id: | <20231001223524.428ED8622949@turkos.aspodata.se> |
| Date: | Mon, 2 Oct 2023 00:35:24 +0200 (CEST) |
| X-Virus-Scanned: | ClamAV using ClamSMTP |
| Reply-To: | geda-user AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | geda-user AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
Richard Rasker:
...
> - When specifying width in millimeters, things work up to 73
> millimeters but throw a sort of overflow error above that value:
>
> $ pcbsilk -W 74mm testlogo.jpg
> double free or corruption (!prev)
> /home/richard/scripts/pcbsilk: line 36: 15520 Aborted            Â
> (memory dumped) pstoedit -q -f "pcbfill" -ssp $silkname.eps
> $silkname.pcb
...
Just tested with your latest pcbsilk and i don't get any errors
except that the output width is slightly in error.
$ ./pcbsilk -W 74mm TestLogo.jpg
$ Pcb_test.pl polygon TestLogo.pcb
Layer 1, name poly:
0.0000 206.7291mm 74.0009mm 279.0472mm
Layer 10, name silk:
$
I.e. bounding box of the polygon is
0.0000 <= x <= 74.0009
206.7281 <= y <= 279.0472
$ ./pcbsilk -W 1204mm TestLogo.jpg
$ Pcb_test.pl polygon TestLogo.pcb
Layer 1, name poly:
0.0000 -897.5900mm 1203.9989mm 279.0472mm
Layer 10, name silk:
$
To debug your program, don't remove the temporary files and
examine them in turn to make sure that they look good.
What version of pstoedity do you have, perhaps try with a later
version. I have:
$ pstoedit 2>&1 | head -1
pstoedit: version 3.75 / DLL interface 108 (built: Dec 18 2020 - release build - g++ 7.4.0 - 64-bit) : Copyright (C) 1993 - 2020 Wolfgang Glunz
Regards,
/Karl Hammar
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |