Pasting a .png into an .htm document

The place to post any Bugs or Problems you may have with the Current Release Version
Post Reply
colojohn
Posts: 11
Joined: Tue Nov 10, 2020 5:40 pm

Pasting a .png into an .htm document

Post 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

Tim
Site Admin
Posts: 1494
Joined: Sun Dec 07, 2008 1:14 pm

Re: Pasting a .png into an .htm document

Post 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.
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)

colojohn
Posts: 11
Joined: Tue Nov 10, 2020 5:40 pm

Re: Pasting a .png into an .htm document

Post 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
Scripture Creation Process_html_49ba566efd16e555.gif (54.5 KiB) Viewed 1869 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

colojohn
Posts: 11
Joined: Tue Nov 10, 2020 5:40 pm

Re: Pasting a .png into an .htm document

Post 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>

Tim
Site Admin
Posts: 1494
Joined: Sun Dec 07, 2008 1:14 pm

Re: Pasting a .png into an .htm document

Post 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.
Attachments
testPage.zip
(60.25 KiB) Downloaded 104 times
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)

colojohn
Posts: 11
Joined: Tue Nov 10, 2020 5:40 pm

Re: Pasting a .png into an .htm document

Post 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

Post Reply