#set page(width: 2.5in, height: 3.5in, margin: 0in)
#page[
#let bg = image("assets/bg/theme.png")
#bg
]
Using a background image that’s 300dpi 750 by 1050, or exactly the same size as the page I get a weird visual gap on the left side.
#set page(width: 2.5in, height: 3.5in, margin: 0in)
#page[
#let bg = image("assets/bg/theme.png")
#bg
]
Using a background image that’s 300dpi 750 by 1050, or exactly the same size as the page I get a weird visual gap on the left side.
Hey @Sylvan_Franklin, I’ve replaced your PDF upload with a PNG image for convenience, as the image is displayed without download. In addition, I’ve changed your post title according to our guidelines at How to post in the Questions category (should be a question). Please keep these in mind!
I cannot reproduce it… Could you provide theme.png
?
Compile #set page(width: 2.5in, height: 3.5in, margin: 0in, fill: red)
into a.png
.
Compile the following into b.pdf
.
#set page(width: 2.5in, height: 3.5in, margin: 0in, fill: red)
#image("a.png")
b.pdf
.Despite all that, in your case, maybe #set page(background: image(…))
is simpler?
Thanks guys! I indeed tried your code too and got no issue, which means that it must come down to something being wrong with the theme card background. I’m still interested in why that would be causing an issue, since inspecting it down to the pixel dimensions it’s exactly the same size, I will upload here so that others can test, thanks for the help!
haha this explains it! tiny sliver of transparency next to the card! didin’t see it ealier in my preview, sorry for a non Typst issue!