Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Electronic Design Automation
gerber2tiff_film
Commits
05dc6556
Commit
05dc6556
authored
Jan 12, 2018
by
Tasso Mulzer
Browse files
Initial commit
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
gerber2tiff_film.sh
0 → 100644
View file @
05dc6556
#!/bin/bash
border
=
"100"
echo
"Generating tiff-Files..."
gerb2tiff nutzen.top
gerb2tiff nutzen.bot
gerb2tiff nutzen.stc
gerb2tiff nutzen.sts
echo
"Generating pbm-Files..."
tifftopnm nutzen.top.tiff | pnmmargin
$border
| pnminvert
>
nutzen.top.pbm
tifftopnm nutzen.bot.tiff | pnmmargin
$border
| pnminvert | pnmflip
-lr
>
nutzen.bot.pbm
tifftopnm nutzen.stc.tiff | pnmmargin
$border
>
nutzen.stc.pbm
tifftopnm nutzen.sts.tiff | pnmmargin
$border
| pnmflip
-lr
>
nutzen.sts.pbm
echo
"Combining pbm-Files..."
pnmcat
-tb
nutzen.top.pbm nutzen.bot.pbm
>
nutzen.copper.pbm
pnmcat
-tb
nutzen.stc.pbm nutzen.sts.pbm
>
nutzen.mask.pbm
echo
"Combining step 2..."
pnmcat
-lr
nutzen.copper.pbm nutzen.mask.pbm
>
nutzen.pbm
echo
"Generating tiff-File..."
pnmtotiff
-lzw
nutzen.pbm
>
nutzen.tif
echo
"Cleaning up..."
rm
*
.pbm
echo
"Done."
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment