Having given up on the Flatpak version of Sigil and then getting Sigil 2.0.2 to work fine on UbuntuStudio 22.04.3 using Qt6, I decided to have another go with the InsertImageSVG plugin. It worked pretty well as expected but I did have a couple of problems: one with the UserGuide and another with images in an eBook which failed to display in the plugin's dialog box.
The ePub2 I used for the trial has one jpg image, the cover image, and 89 gif line drawings. The cover jpg displayed ok but when I clicked on the next gif in the images list, all I got was a blank, black display. Same with the next few gifs.
My first thought was that there was a problem with gifs but for a reason that I cannot explain, I went to the last gif in the list, 089.gif, and it displayed ok. I finally determined that 001.gif through 073.gif do not display in the plugin's dialog but 074.gif through 089.gif do display correctly.
I found that the plugin works correctly, inserting new xhtml files or copying an image into an existing xhtml file regardless of whether or not the image selected displays in the plugin's dialog. So the problem is one of display within the plugin.
I cannot see why the first 73 gifs do not display. All the gifs are of size between 6 and 8 KiB except the last one, 089.gif which is 100KiB. Could it be a memory allocation problem with the plugin? But why do the higher-numbered images display and not the lower numbered images?
The UserGuide: the UserGuide for this plugin has an image which does not display correctly. It has been named SVGImageDialog.JPG but the xhtml reference which calls this image to be displayed is shown on line 118 in UsingPlugin.xhtm as ;
<p><img alt="SVGImageDialog" src="../Images/SVGImageDialog.jpg"/></p>
JPG upper case in the image name and lower case in the xhtml file.
Sigil wouldn't allow me to rename the file in the images folder to SVGImageDialog.jpg saying that there was already a file of that name. So my solution was just to edit the entry on line 118 in UsingPlugin.xhtml to
<p><img alt="SVGImageDialog" src="../Images/SVGImageDialog.JPG"/></p>
Apparently, Sigil considers a file name with upper case JPG to be same as with lower case jpg so won't allow the name change. But the xhtml treats the cases differently.
|