Images, PDFs, SVG and HTML
Each of these opens in its own preview, whose title names its type, such as logo.png - Image Preview.
Nothing in a previewed file runs, so a dodgy download can't do anything while you look at it.
View an image
File Explorer › click an image
The image preview shows PNG, JPEG, GIF, WebP, AVIF, BMP and ICO files in a panel, so you can check a picture without opening another program. It opens fitted to the panel, and you can zoom in to see single pixels.
- Click the image in the File Explorer.
- It fits its panel; switch to 100% to see it pixel for pixel.
- Zoom and pan as you would a diagram.
Transparent areas show over a hatch, so you can tell them from white.
Read a PDF
File Explorer › click a PDF
The PDF preview lets you read documentation beside your work. It draws pages as you scroll to them, so a long manual opens fast.
- Click the PDF in the File Explorer.
- Choose a page layout and zoom.
- Press Ctrl+G to go to a page, or Ctrl+F to find text.
You can select text and follow links as you would in any PDF reader.
View an SVG
File Explorer › click an .svg file
An SVG preview shows the drawing as a picture. Put it beside an editor on the same file and you see each change to the source as you type it.
- Click the SVG in the File Explorer. It shows as a static drawing.
- To edit it, open it in an editor beside the preview: the preview follows your edits.
Change the background behind a picture
Image or SVG preview › Picture Background
A dark logo can vanish against a dark hatch, and a busy hatch can drown a faint one. You can change the hatch and what lies behind the picture from the preview itself, and see each change as you make it.
- In the preview's view controls, choose Picture Background, beside Zoom Out.
- Pick a Hatch Colour and a Picture Background (Pick a colour). Clear either, in its picker, to have it inherit from the editor colours.
- Drag Hatch Opacity to fade the hatch, or to 0 to hide it. The previews follow as you drag.
- Reset a setting to the value your theme ships with from the reset button at the end of its row.
- Click anywhere else, or press Esc, to close it.
These are settings of your theme, so every Image and SVG preview follows them, and the panel around the picture keeps its own colour. They are also under Cog › Themes › Main panel / workspace: Picture Transparency Marker, Picture Background and Picture Transparency Marker Opacity.
Open new previews at your last zoom
Cog › Settings › Editor › Previews
When you zoom a preview, throng keeps that zoom for you. The next PDF, image, SVG, HTML or CSV preview you open starts there, so you set your reading size once. A PDF also keeps the page layout you chose, such as Two Pages, and a CSV preview keeps its Wrap and Lock choices.
- Open a PDF, image, SVG, HTML or CSV file in a preview.
- Zoom it, or for a PDF choose a page layout. throng keeps that view for the file type.
- Open another file of the same type in a new preview. It starts at the view you kept.
- To stop keeping views for a type, open PDF: Remember the last view in Settings and turn it off. Each type has its own.
A preview that is already open keeps the view it has, and zooming one never changes another. Pictures shown inside another preview, such as a Markdown preview, do not take part.
Preview an HTML page
File Explorer › click an .html file
The HTML preview renders a page you are building in a sandbox, with its scripts switched off. It updates as you edit the file, so you can watch the layout change.
- Click the HTML file. The page renders in a sandbox.
- Edit the file beside it: the preview updates as you go.
- Links follow, Ctrl+F finds and Copy works. Point at a link to see its address at the bottom-left of the panel.
Allow remote content in an HTML preview
The notice an HTML preview shows › Allow this source
An HTML preview blocks the fonts, styles and images a page loads from the web, and lists what it blocked. You choose which of those sources to trust.
- Read the notice: it lists every source the preview blocked.
- Click Allow this source for each one you trust.
