I’m helping a friend format his new book, and I’m using Scrivener to master the e-Pub. I’d like to insert a small vector graphic (png, jpg, or preferably svg) between scene breaks during the compile for e-pub. I haven’t done that before, and a search for hints has been unproductive. Could someone point me in the right direction?
Hi.
I won’t pretend that I know a lot as regard to your question: I don’t.
Technically, you’d have to put the image in your research folder, and then use a placeholder to refer to it.
Go to Help / List of all placeholders
and near the bottom you’ll find the image-related ones.
This placeholder should go in the section suffix tab of your compile format. (From your description, that’s where you want it.)
I can’t tell you more, but this should (or more simply might) point you in the right direction.
Search the forum for posts from @drmajorbob. He’s very good at this (inserting and handling images) and posted about it a couple of times.
You may also want to search for post from him (B R Treat) here:
(There might be posts from others that could help, too.)
Hopefully this will help you move forward.
. . . . . . . . . . .
Alternatively, if you want to do it the easy way (perhaps it’ll do for you), rather than having the compiler handle it, you could simply insert the image at the end of the documents where you want it.
That’s a whole whole lot of work; it’s the way I did his previous book (for print). And he isn’t finished with the editing process in this one, so everything will change. Trying to automate it for simplicity.
Then try
Drop the image in your research folder, and replace “imgName” with its name.
You’ll need a section layout set like this, linked to a section type exclusive to the documents at the end of which the image should occur. (Not sure it’ll be that much less work. You’ll assign documents to a new section type rather than pasting the image in them. – Unless your binder structure allows to auto-assign section types ; in which case, yes, that’d be a gain.)
A nifty way to do this, is to Import the images in an images folder, create a Custom Metadata text called “Image”, and add the nested Placeholder in the Title Options’ Prefix for the scene Section Layout.
You can insert the name of the image in the Inspector Metadata textbox, different per chapter, without the extension.
I’m getting close on this.
The problem is that the graphic, as compiled, is too big. I’d prefer to shrink it to about one-third of the screen. I’ve tried putting “33%” and even “10%” in the image tag, but it still fills the entire width of the screen. Suggestions?
This is gonna look good.
This was my problem, the image was too wide:
Resized the image and adjusted that parameter to 2000 pts, and:
We should probably not be considering that option applicable to cases where the placeholder is being used with an explicit width given. The latter should absolutely take priority over this, which is meant to be a catch-all fixer for “sloppy” image sizing. I’ll check and see if there is anything written up for that.
Looks good!