View Single Post
Old 06-13-2021, 10:36 AM   #60
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,833
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
I discovered a new bug, this time in Bibi Reader and with svg images.

When I inserted a svg image by using the <img> tag, Bibi was able to displayed without problem:

Click image for larger version

Name:	Image1.png
Views:	1233
Size:	221.0 KB
ID:	187658

But when I wanted to insert the same image but with a svg wrapper, I got the following output:

Click image for larger version

Name:	Image2.png
Views:	1242
Size:	233.7 KB
ID:	187659

Since the same image was able to be displayed without issue by using a img tag, evidently Bibi could show svg images and I supposed that the problem should be in the svg wrapper. Then I tried with a png image (with the same draw as the svg one) inside a svg wrapper to see what would happen:

Click image for larger version

Name:	Image3.png
Views:	1217
Size:	224.5 KB
ID:	187660

Since Bibi was able to show png images inside a svg wrapper, the problem wasn't in the wrapper. Evidently, the issue was in that Bibi couldn't find the svg image. (Below I attach the respective epub).

So, after opening Bibi.js I found and I changed the following statements:

This:
Code:
{Attribute:"src|xlink:href",Extensions:"gif|png|jpe?g"}
is replaced by:
Code:
{Attribute:"src|xlink:href",Extensions:"gif|png|jpe?g|svg"}
and this:
Code:
{Attribute:"src|xlink:href",Extensions:"gif|png|jpe?g|mp([34]|e?g)|m4[av]"}
is replaced by:
Code:
{Attribute:"src|xlink:href",Extensions:"gif|png|jpe?g|svg|mp([34]|e?g)|m4[av]"}
After those changes, Bibi was able to display svg images also inside a svg wrappers. I report this, because maybe you Kevin can include these changes in future releases of Bibi plugin.
Attached Files
File Type: epub Bibi Case.epub (61.7 KB, 1226 views)
RbnJrg is online now   Reply With Quote