28 Images and Files

Last update: Jun 30/22


Pressbooks allows you to upload and insert many different types of files and media into your book. When uploading media into Pressbooks, note the following:

  • The maximum file size that you can upload in the Sask Polytechnic Pressbooks instance is 48 MB. (Note that this upload-size limit is different from the import-size limit, which is much larger.)
  • To give a reader access to a file without leaving Pressbooks, then upload the file to the Media Library before inserting it into the book. The file cannot be embedded into the book by linking to an external source.
  • Embedded images must be one of the following: JPG, PNG, or GIF.
  • File types that will not embed—such as PDFs, Word files, or PowerPoint slides—can still be provided. Instead of using an embedded image, readers can download these file types from the book through a hyperlink.
  • If you plan on adding media to your book, an easy way to make sure you can include media into chapters as you write is to upload them to the media Library in advance. You can access the Library and upload attachments by clicking Media in the left sidebar menu, or by clicking Add Media in any chapter’s editing interface.
  • To upload attachments to your Media Library, click Add New, found either in the left-hand side bar below Media or with the red button within the Media Library. You can either click to select specific files or drag and drop to upload them to your Library.Selecting any media in your Library allows you to add important details as well as editing them. Clicking on an image will bring up the Details menu. The right side of the Attachment details menu includes fillable fields to include more information about the media. This includes a title, caption, and description field.

    When you’re ready to add an image to your book, put your mouse cursor where you want the image to go in the editing interface, hit the “Add Media” button, and select the image you want from the Media Library tab. To add the image to your chapter, click the “Insert into chapter” button.

  • By default, media added to your book will appear in a smaller, medium-sized format. To resize your image, click on it and select the pencil icon, and then select the image size you want from the Display settings dropdown. From this menu you can edit the caption, alt text, and image size. Select Large to make you image as large as possible. You can drag the image down to a smaller size later if necessary.
"" See the following chapters in the Pressbooks User Guide:

Optimize images for web and print

If your goal is to produce a book for both web and print delivery, image set up and placement must be considered. It is recommended that all images are centred and that image size is no more than 500 pixels wide and 600 pixels high.

Using a larger image can potentially push it to another page in the PDF—sometimes several pages away from its webbook position. One solution for this problem is to add page breaks to key spots in the book.

"" See Create Section and Page Breaks in PDF Exports in the Pressbooks User Guide.

Some authors choose to create a separate version, PDF, or other file type or different system such as InDesign, for print so that text and image layout for the web version can be more creative without having to take into account constraints needed for print.

Image attributions

For a comprehensive discussion attribution, see Resources: Captions and Attributions in the Self-Publishing Guide.
"" See Adding details to your media in the Pressbooks User Guide.

Image captions

For a comprehensive discussion on caption styling, see Resources: Captions and Attributions in the Self-Publishing Guide.

Upload files to a book

In a book, you can link to files hosted the Pressbooks Media Library so people reading the book can access those files. This feature may be useful if you want to share files that will not display directly in Pressbooks, like PDFs, Excel spreadsheets, or PowerPoint slides.

To add a link to a file in a book in Pressbooks, follow the following steps:

  1. Click “Add Media” at the top of the Visual Editor in Pressbooks.
  2. Select the Upload Files tab and select the file you want to upload.
  3. Click “Insert into chapter.”
  4. The link text can be editted, as is typical with any hyperlink.
The below videos are from the Pressbooks Video Tutorial Series.






Icon for the Creative Commons Attribution 4.0 International License

Sask Polytechnic Pressbooks Guide Copyright © 2016-2022 by Saskatchewan Polytechnic, / BCCampus is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book