View Single Post
Old 01-28-2019, 09:35 AM   #6
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
Quote:
Originally Posted by RbnJrg View Post
Hi Momoha;

Sometime ago I wrote a couple of posts to deal with that issue; it works even with epub2. Maybe also they can help you a bit, especially with epub2:

https://www.mobileread.com/forums/sh...04&postcount=7

https://www.mobileread.com/forums/sh...9&postcount=11
I think that the code that I suggested is much more convenient as no calculation has to be made, and no size has to be written in the ePub. If you have to process a book with hundred of images, this is a big thing, as my code can be implemented using regex, versus yours where you have to enter the pixel size every time. And, the proper semantic can be used, with figcaption. For me it works perfectly on all my devices, but I would really appreciate if you can test my code on your side too!

BUT, as I wrote in my edit, it seems that many resellers and even Apple highly discourage the use of an image in a <svg> tag, and some even change the code automatically and hence mess it up. Personally, I’ve been using that method since a few years and we didn’t get any problems with our resellers, but I guess it’s a risky thing to go with that code.
momoha is offline   Reply With Quote