Multiple images on same sheet
Hi @sleemanj
I was wondering, is there a way to have multiple copies of the same images on a particular page, in other words to have 2 x copies of the copper bottom on page 1, 2 copies of bottom mask on page 2 etc. The reason I am asking is that I typically need to overlay at least 2 transparencies on top of each other to get the artwork dark enough for reliable exposure.
-lekrom
I'm interested in doing the same... not sure if @sleemanj is still maintaing this script, but this would definitely be a useful option. I haven't dug too deep into the code, but, seeing as how it's in bash script, it shouldn't be too hard come up with a patch that adds this functionality.
@lekrom I managed to get around this by adding a loop around the drawing routine so that it runs a couple of times within the script code, at around line 775:
echo "Tiling $N_ACROSS x $N_DOWN per page."
COPY_COUNT=2
echo "Number of copies per image: ${COPY_COUNT}"
for i in `seq 1 ${COPY_COUNT}`
do
for file in out/*.png
do
[ "$SCALE_X" != "1" -o "$SCALE_Y" != "1" ] && scale_image $file
THIS_PAGE="$THIS_PAGE $file"
if [ $(echo $THIS_PAGE | wc -w) -eq $IMGS_PER_PAGE ]
then
echo "Creating page ${PAGENUM}..."
montage -density $RESOLUTION -mode concatenate -tile ${N_ACROSS}x $THIS_PAGE out/page-${PAGENUM}.pdf 2>/dev/null
THIS_PAGE=""
LASTPAGENUM=$PAGENUM
PAGENUM=$(calc "$PAGENUM + 1")
fi
done
done
this seemed to work for my simple print-outs (I'm currently only doing the top & bottom layers). The only issue is that it repeats whatever is in the original png image, which includes the 'TOP' and 'BOTTOM' annotations below each image. This uses up a lot of space, so, ideally, more logic would need to be added to either trim the png images to remove the annotations or disable them altogether. It might not hurt to add an additional program option to enable/disable the annotations. @sleemanj, thoughts?