[Solved] Separator graphic with transparent background

I want to use this separator graphic in a few places in my novel (the places I want to use it aren’t regular enough that I could apply a rule for placement, though I could put a placeholder). In order to support different rendering styles, I thought I’d create it with a transparent background, but when I compile, the graphic shows up with the little grey-and-white checkerboard as a background that’s an indicator in graphics programs of transparency. How do I get it to just show the page color? Running v.3.5.2 on MacOS.

Here’s the way it shows up on the page:

Is this a Scrivener question, per se? It sounds like you are describing how some unknown piece of software displays transparent images in an unspecified document type. It might be more direct to query on the forums for that program, but it’s hard to say.

All I can say for sure is that it’s pretty unlikely that Scrivener is printing a checker pattern into the file. I don’t think anything in the core image stack that it uses would do that (if for example you load an image with transparency in Preview, it uses a solid grey background instead of the typical checker board).

2 Likes

It is absolutely a Scrivener question. What I want to know is how to place an image as an inline graphic in a Scrivener document so that the transparency in the graphic shows the page color when rendered. In this way, when I choose to publish with a non-white page color (or an eBook reader sets their rendering style to something other than black text on a white background), the background of the image doesn’t stand out.

The issue isn’t that Scrivener is adding the checkered background, it’s that it’s not recognizing the transparency layer in the PNG.

So, who or what adds the chessboard then?

Nope. Unless your PNG is “broken” to begin with. Otherwise it works as expected (Scrivener using a dark theme):

1 Like

Thanks for the confirmation that the feature is supported. I’m using GIMP to create the image. I’ll review the settings. Your image above is a PNG?

1 Like

Yup, it’s a PNG with a transparent background. Just drag’n’dropped from the Desktop into Scrivener. Can you upload your original image somewhere or share a link? Maybe I can see what’s going on there.

Not sure if the forum did this, but that’s a JPEG with the chessboard already built-in.

ADD: I tried uploading the original dog PNG to this forum, it gets converted to JPEG (but with a solid white background).

ADD2: The original file → Filebin | 1a44jjhstz2hygxf

1 Like

Huh. I re-exported it with GIMP and now it works fine. Thank you for the help.

2 Likes