What is an Asset?
The assets are the files (mainly multimedia files) that you use in your project, like images, videos and sounds. Every time you add an asset to your project for the first time, for example when you drag an image file onto the stage, PubCoder makes a copy of that file inside the project and processes it, for example creating thumbnail files for an image, to optimize speed and compatibility. From that moment on, that asset will exist in your project file and you will find it in the Assets panel, thus you can safely delete the original file, since the PubCoder project file contains a copy of it. Most importantly, if you need to send a project to a colleague, you can safely send the .pubcoder project file alone, which has everything bundled in: no need to also send zipped linked files like you do in other authoring tools.
PubCoder divides assets into categories: Images, Audio, Video, Folder, Fonts, SMIL and Other Assets. For supported file formats, see the help pages for the specific objects.
Assets Library
The Assets Library displays every asset which is actually in your project, and lets you select and edit them. You can always find the Assets Library in the Assets Panel on the left of the project window, but it will also be displayed whenever you choose to select an asset, for example if you need to select a project cover from the Project Inspector among the various images in your library.

The library is divided horizontally into four different areas:
- At the top, a pop-up menu lets you switch between the categories of assets (Images, Audio, Video, Fonts and so on)
- Just below, it presents an area where you can find a preview of the selected asset (if applicable) and some metadata. You can click the preview to display it at its original size
- The list of assets takes most of the interface. You can select one or more assets and drag them onto the stage to place them on your layout (if applicable), or right-click them (or click the small arrow that appears when hovering over a row) to open the assets menu
- At the bottom of the interface you can find a search box to filter the assets and a plus button to add/import new assets to the library
Importing Assets
To import a file/folder as an asset in PubCoder, just drop it into the Assets Library or click the plus button. When dropping a file, the software will figure out the right category automatically.
- (dash), _ (underscore) and @ becomes a dash, and so does every dot except the one before the extension. For example, St. Mary’s Church.jpg becomes St-Mary-s-Church.jpg. Accented letters become dashes too, so you may want to rename those files before you import them.Beside importing files from your desktop, PubCoder offers some integrations to find and get some specific assets from the Internet. Specifically, trying to add Images or Fonts to your project (e.g. using the plus button in assets library or the Insert button in the project window toolbar) will also present an option Import from Internet.
Import Images from Internet
PubCoder includes an image browser that lets you search and import:
- on the Unsplash tab, photos from Unsplash
- on the Wikimedia Commons tab, Creative Commons and public domain images from Wikimedia Commons, including vector images in
SVGformat NEW in 6.0
To open it, choose Insert ▹ Image ▹ Image from Internet… from the menu bar, or click the plus button of the Assets Library while it shows images and choose Import Image from Internet… from its menu. Choose a tab, type a search term (in English, on the Unsplash tab) and press Return.

Double-click an image to see its title, author and license, then click Import Image: the image is added to your Assets Library without leaving PubCoder. For SVG images from Wikimedia Commons, click Import Vector to import the vector file, which you can scale to any size without losing quality. Before importing, you can also set the alternative description of the image asset, which screen readers read aloud: PubCoder fills it in with the description of the image or with your search term.
You can also ask the AI Assistant to find and import images from Wikimedia Commons, for example “Find a public domain photo of a lighthouse and use it as the background of page 3”.
Import Fonts from Google Fonts
PubCoder is completely integrated with the Google Fonts directory, which offers a collection of fonts licensed under open source licenses that can be used in your projects and embedded in your final exports at no extra cost.
To open it, click Insert in the project window toolbar and choose Font ▹ Font from Google Fonts… from its menu, or click the plus button of the Assets Library while it shows fonts and choose Import Font from Internet… from its menu. Search by name, or filter by Category, Variant and Subset, then click a font and click Import to import the whole font family into your project.
Once downloaded, the fonts will be automatically included in your exports, and PubCoder will also generate the correct CSS to let you use them in the project. This also applies to font files you import from your computer.

Working with Assets
You can manipulate assets in the library by opening the assets menu, either by right-clicking on an asset or clicking the small down-facing arrow that appears on every row while moving the cursor over it.

Let’s see the various options:
- Rename - Assigns a new name to the asset file. This is usually safe, unless some custom code links to the file by its path: in that case, update the code manually or ask the AI Assistant to do it
- Preview - Opens a preview of the asset at its original size, when possible, using Quick Look technology on Mac and a custom-written viewer on Windows: you can see an image at full size, play a video or listen to an audio asset
- Open in External Editor - Opens the asset in an external application and starts monitoring the file for modifications, that will be automatically applied on your project until you close the Monitoring External Editing window in PubCoder. External editors can be set in the Editors tab of PubCoder’s settings: choose PubCoder ▹ Settings… on Mac or Edit ▹ Settings… on Windows from the menu bar

- Save as… - Lets you save a copy of the asset as a file on your desktop
- Edit Asset Properties… - Opens the list of the properties of the asset, like its alternative description and, for images imported from the Internet, their license, attribution and source page. You can edit them, add new ones or remove them
- Attach Asset - Lets you attach the asset to the exports (see Attaching Assets)
- Update Asset - Rebuilds the asset from its file, reloading its metadata and rebuilding the thumbnails: use this when the file contents do not reflect what you see in the Assets Library
- Replace Asset… - Lets you replace that asset with another file, meaning that the old file and all its occurrences in your project will be replaced by the new one. This is usually safe, unless using custom code that links to the old file via path, in this case the new file name should match the old one, or custom code should be updated manually to match the new file name
- Remove Asset from Library… - Removes the asset from the library, breaking all its references in the project, e.g. if you remove an image that was used in an image object, the image object stays on the page but contains no image (a warning for this will be generated when exporting or previewing your project)
You can also ask the AI Assistant to rename or delete assets, for example “Rename the image assets after what they show” or “Delete the audio assets that no page uses”: it always asks for confirmation before deleting or renaming assets.
Attaching Assets
Usually PubCoder manages assets automatically, including them in your exports only when it is necessary, and sometimes even modifying them while exporting. For example, if your assets library contains two images, but you are actually using only one of them in your pages, PubCoder will export only the image you are actually using in the project, reducing the overall size of the export; also, if an image is in a format which is not web-friendly (e.g. Photoshop PSD), it will convert it as necessary (e.g. to PNG).
But this will not work when you reference assets directly in custom HTML, CSS or JavaScript code which you may use in your project. In that case, PubCoder does not know that you are actually using the asset, and you will have to “Attach” the asset to your exports manually, otherwise PubCoder will not export it. To attach an asset, use the Attach Asset menu entry in the asset menu (see Working with Assets): attached assets will display a “clip” icon in their rows in the Assets Library.
Since attaching assets is useful only to use them via code, the assets menu also includes Attach Asset and Copy URL, which attaches the asset and copies its URL to your clipboard, ready to paste in your code (Copy Asset URL if the asset is already attached).
Analyze Project
Sometimes your assets library can get pretty heavy, containing duplicate assets or other assets that are not used at all in the project but that make the size of your .pubcoder project file unnecessarily big.
Choose Project ▹ Analyze Project… from the menu bar to find the assets that no page uses, identical assets (for example the same image imported twice with different names), orphaned files and assets with problematic file names.
The Analyze Project window lists these issues and shows a bar graph of the space taken by each kind of file. Select the issues you want to fix and click Consolidate: PubCoder deletes the unused assets and orphaned files, merges identical assets (it keeps one of them and relinks every object to it) and fixes the file names.
