Mail Archives: geda-user/2023/10/02/14:37:31
This is a multi-part message in MIME format.
--------------fIyoqkAeRSh01NA8tT0SZhlM
Content-Type: multipart/alternative;
boundary="------------NoZhvW0TxI0mjhvh1Z3cqEqd"
--------------NoZhvW0TxI0mjhvh1Z3cqEqd
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Ah, found the error: forgot the backticks to attribute the result of the
command to yshift. This is the correct version:
yshift=`echo "scale=2;-$ymin*25.4/100000" | bc`
And attached once again the latest version -- which I hope is the final,
correct version. As an afterthought, I also added a -threshold 85%
option to ImageMagick's convert command. This prevents color gradients
etcetera from ending up as dithering (which can result in rather big pcb
files).
Anyway, thanks for the help, and I hope other people find this script
useful as well. Of course I'm always open to bug reports and suggestions
for improvements.
All the best,
Richard Rasker
--------------NoZhvW0TxI0mjhvh1Z3cqEqd
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Ah, found the error: forgot the backticks to attribute the result
of the command to yshift. This is the correct version:</p>
<blockquote>
<p><font face="monospace">yshift=`echo
"scale=2;-$ymin*25.4/100000" | bc`</font><br>
</p>
</blockquote>
<p>And attached once again the latest version -- which I hope is the
final, correct version. As an afterthought, I also added a
-threshold 85% option to ImageMagick's convert command. This
prevents color gradients etcetera from ending up as dithering
(which can result in rather big pcb files).</p>
<p>Anyway, thanks for the help, and I hope other people find this
script useful as well. Of course I'm always open to bug reports
and suggestions for improvements.<br>
</p>
<p>All the best,</p>
<p>Richard Rasker<br>
</p>
</body>
</html>
--------------NoZhvW0TxI0mjhvh1Z3cqEqd--
--------------fIyoqkAeRSh01NA8tT0SZhlM
Content-Type: text/plain; charset=UTF-8; name="pcbsilk"
Content-Disposition: attachment; filename="pcbsilk"
Content-Transfer-Encoding: base64
IyEvYmluL2Jhc2gKCmlmIFsgIiQxIiA9ICItPyIgXSB8fCBbICIkMSIgPSAiLWgiIF0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