Page 1 of 1
Pasting a .png into an .htm document
Posted: Tue Aug 13, 2024 11:11 am
by colojohn
Good morning!
I created a flow-chart about how Scripture is inspired and preserved and saved it as a .png file. I then pasted the .png into my S-Pad document. The graphic didn't appear to save. Just an empty box.
Is there a way to save graphics into the S-Pad (or Notes) editor?
Thanks!
colojohn
Re: Pasting a .png into an .htm document
Posted: Wed Aug 14, 2024 7:53 am
by Tim
ScripturePad saves any pasted images as inline base64 data. You can examine the saved .htm file to see if the data is there.
You can also try saving a smaller image as a test. The image should display in your default browser as well if opened with it.
IF you still have trouble send me a small .htm file with an image and I'll take a look.
Re: Pasting a .png into an .htm document
Posted: Fri Aug 16, 2024 2:33 pm
by colojohn
Tim wrote: ↑Wed Aug 14, 2024 7:53 am
ScripturePad saves any pasted images as inline base64 data. You can examine the saved .htm file to see if the data is there.
You can also try saving a smaller image as a test. The image should display in your default browser as well if opened with it.
IF you still have trouble send me a small .htm file with an image and I'll take a look.
Tim, I viewed the .htm source and there is a link to a picture (saved as a .gif) saved to the same folder.

- Scripture Creation Process_html_49ba566efd16e555.gif (54.5 KiB) Viewed 31921 times
I've attached the .gif but cannot attach or paste the .htm code (the discussion board software won't let me attach a .htm or .html file). Can you tell me how to send you the .htm code?
Thanks, colojohn
Re: Pasting a .png into an .htm document
Posted: Fri Aug 16, 2024 2:35 pm
by colojohn
For whatever reason, the board let me copy and paste the code this time.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>default</title>
<meta name="generator" content="LibreOffice 7.3.7.2 (Linux)"/>
<meta name="created" content="2024-08-09T13:57:17.705332775"/>
<meta name="changed" content="2024-08-13T10:02:10.883930443"/>
<style type="text/css">
@page { margin-left: 1.8in; margin-right: 1.8in; margin-top: 1in; margin-bottom: 1in }
@page:first { margin-top: 1in; margin-bottom: 0.79in }
p { line-height: 100%; text-align: justify; margin-bottom: 0.1in; page-break-before: auto }
p.western { font-family: "Linux Libertine" }
</style>
</head>
<body lang="en-US" dir="ltr"><p class="western" align="center"><font face="Linux Biolinum"><font size="4" style="font-size: 16pt"><b>God’s
Communication with Humanity</b></font></font></p>
<p class="western" align="left"><img src="Scripture%20Creation%20Process_html_49ba566efd16e555.gif" name="Image1" align="left" width="470" height="514" border="0"/>
<br/>
<br/>
</p>
</body>
</html>
Re: Pasting a .png into an .htm document
Posted: Fri Aug 16, 2024 4:53 pm
by Tim
I think it may be because it is a GIF. I copied the image and saved it as a JPG and then copied and pasted it into Spad. It embedded it into the HTM file. See attached.
Re: Pasting a .png into an .htm document
Posted: Sat Aug 17, 2024 10:16 am
by colojohn
Tim, it worked! Now I just need to work on shrinking the width and height so the entire image shows in the SPad window.
Thanks, colojohn