Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cut marks #80

Open
platinumachievements opened this issue Jul 4, 2023 · 2 comments
Open

Add cut marks #80

platinumachievements opened this issue Jul 4, 2023 · 2 comments

Comments

@platinumachievements
Copy link

I would love to be able to add cut mark overlays when looking to export, or an option to add bleed.

@hristoiankov
Copy link
Contributor

For bleed, it is really dependent on the service you are using to print and what tolerances they have. Ex. https://s3.amazonaws.com/www.thegamecrafter.com/templates/poker-card.png

What you would do is build the bleed into your card template. Then the print service you use will cut into the card print with the bleed falling off.

Same for cut marks, you can just set border: 2px dashed black on your outer card element and all your cards will render with cut lines. However, having cut lines means that if you don't perfectly cut on the inside of the lines, some of the dashes will stay on the card.

That's my understanding, but let me know if you were thinking something different.

@jordanwallwork
Copy link

jordanwallwork commented Feb 22, 2024

I know this reply is late, but for the benefit of anyone else who might see this, I needed cut marks but different to those that hristoiankov described - I needed guidelines that I could use to line up a straight edge for accurate cutting. I achieved this by wrapping my card in a div with a few additional elements for the guide lines, resulting in this outcome:

image

HTML:

<div class="cut">
    <div class="cut-top"></div>
    <div class="cut-left"></div>
    <div class="cut-right"></div>
    <div class="cut-bottom"></div>

    <div class="card"><!-- your card here --></div>
</div>`

CSS:

.cut {
    --pad: 60px;
    padding: var(--pad);
}
.cut-top, .cut-bottom {
    position: absolute;
    top: 0;
    left: var(--pad);
    right: var(--pad);
    height: calc(var(--pad) - 20px);
    border-left: 1px dashed #ccc;
    border-right: 1px dashed #ccc;
}
.cut-bottom { top: auto; bottom: 0; }
.cut-left, .cut-right {
    position: absolute;
    left: 0;
    top: var(--pad);
    bottom: var(--pad);
    width: calc(var(--pad) - 20px);
    border-top: 1px dashed #ccc;
    border-bottom: 1px dashed #ccc;
}
.cut-right { left: auto; right: 0; }

I'm sure there are better ways to do this, but this worked for me so sharing in case it helps anyone else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants