PDA

View Full Version : Bitmap images in reference manual are showing broken image



eldarune
July 23rd, 2022, 03:12
FGU: 4.2.2

Images in blocks in the reference manual have suddenly stopped working for me.

53685

The clipped code (which has otherwise been working for a long time), is:


<?xml version="1.0" encoding="ISO-8859-1"?>
<root version="4.2" release="22.07.00">
...
<reference static="true">
...
<pages>
<page0000>
<name type="string">Front Cover</name>
<blocks>
<block1>
<blocktype type="string">image</blocktype>
<align type="string">center</align>
<size type="string">535,692</size>
<image type="image">
<bitmap>images/cover.jpg</bitmap>
</image>
</block1>
</blocks>
</page0000>
...


Any thoughts on what is going wrong / have I missed some release notes affecting this?

Thanks in advance.

Moon Wizard
July 23rd, 2022, 18:06
There is nothing that has changed that affects this.

It looks like the "code clip" that you posted is from a module; so please ensure that the images/cover.jpg exists within the module export file.
Otherwise, you'll need to post in order for us to look at it.

Regards,
JPG

eldarune
August 3rd, 2022, 09:11
Otherwise, you'll need to post in order for us to look at it.

I've extracted the guts of it and I'm still getting the same broken image thing happening. Let me know if you need any more information.

Running v4.2.2 on Mac.

Moon Wizard
August 14th, 2022, 05:44
It looks like you are trying to load the reference manual data manually in XML (or using external tools), as shown by the fact that your module is specifying the latest data format in the root attributes but using an old data format in the "image" node. The data format you're using corresponds with root version="3.1", not "4.2"

You should use the Module Builder available via the button in the Modules window to create any new reference manuals to avoid issues like this in the future.

Regards,
JPG

eldarune
August 14th, 2022, 23:07
The data format you're using corresponds with root version="3.1", not "4.2"

Thanks. Have you documented the new format (like there was in the old wiki) or is the "Module Builder" essentially the documentation now?

Moon Wizard
August 14th, 2022, 23:50
The module builder already handles all of that.

The issue with your module was the actual application version. (Ie you’re using FGC image data, but specified an FGU module data version.)

Regards,
JPG

eldarune
August 15th, 2022, 11:26
(Ie you’re using FGC image data, but specified an FGU module data version.)

Thanks and got it. Root problem was my omission of the`<layers>` tags around the `<bitmap>` (had it right in other places, just couldn't see the forest for the trees).

The Module Builder still can't handle Book style frames yet can it? `<frame type="string">book</frame>`

Zacchaeus
August 15th, 2022, 12:36
Yes, it can apply any of the frame styles to either a page or to a sidebar.

damned
August 15th, 2022, 14:16
It sure can. This is the recommended way to build all refmans now.
If you are also creating Story Entries then Author can help speed up copying en masse from Story to Reference Builder.