01-29-2019, 10:50 PM | #61 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thank you
|
03-12-2019, 09:13 PM | #62 |
Zealot
Posts: 131
Karma: 10
Join Date: Jan 2015
Location: Buenos Aires
Device: Android
|
It seams the plugin does not insert the svg.xhtml page where you choose to insert (after, before, etc), but several pages above.
Anybody has experienced the same behaviour? Using latest Sigil and Plugin. Thanks |
Advert | |
|
03-15-2019, 02:21 PM | #63 | |
Grand Sorcerer
Posts: 27,968
Karma: 198535232
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
And looking at the code, I see why it doesn't work, but I'm not certain how quick or easy the fix would be. If there was a one-line change I could give to correct it, I would. You'll probably have to wait on the plugin creator to notice this. Suffice to say: the code should probably be using bk.spine_iter() instead of bk.text_iter. And sorting the xhtml files before loading them int0 the combo box is a mistake. Last edited by DiapDealer; 03-15-2019 at 02:59 PM. |
|
03-15-2019, 03:06 PM | #64 |
Grand Sorcerer
Posts: 27,968
Karma: 198535232
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Actually, it's not that difficult. It would take a minor reworking to make it more robust, but someone should be able to get by with changing line 194 of plugin.py from:
Code:
for id, href in self.bk1.text_iter(): Code:
for id, linear, href in self.bk1.spine_iter(): From: Code:
self.cbXhtmlList=self.natural_sort(self.cbXhtmlList) #Sort the list of images Code:
#self.cbXhtmlList=self.natural_sort(self.cbXhtmlList) #Sort the list of images |
03-15-2019, 06:24 PM | #65 |
Zealot
Posts: 131
Karma: 10
Join Date: Jan 2015
Location: Buenos Aires
Device: Android
|
Thanks i will give that a try.
|
Advert | |
|
03-16-2019, 01:01 PM | #66 |
Addict
Posts: 202
Karma: 62362
Join Date: Jul 2015
Device: Sony
|
I have updated the plugin to version 1.6.1 to correct the bug mentioned by Thomas_AR. The bug was introduced in version 1.6.0
Thanks to DiapDealer for spotting the bug. |
04-26-2019, 10:57 AM | #67 |
Junior Member
Posts: 2
Karma: 10
Join Date: Apr 2019
Device: iPad
|
Is it normal the svg import image with a smaller width and hight?
I have a photo 1000px x 1511px But the viewBox will become "0 0 260 400" and the image size will become width="260" height="400" |
04-27-2019, 12:21 AM | #68 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Apr 2019
Device: iPad
|
Quote:
I want this function too. It will much easier to make comic Epub |
|
05-23-2019, 12:26 PM | #69 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
This is a proposal. One example coming from an ePub3 produced by LibreOffice. The original cover file is described with an item in both the toc.xhtml and the toc.ncx. If you change this original file with a SVG wrapper using this fine plugin, and then delete the original file, the new SVG wrapper file name is not updated in both tocs. epubcheck reports then that the original file is missing and you have to change the name of this file manually. It could concern, not only the cover images, but some images within the ePub as well. Could this last task (updating the tocs) be performed automatically? |
05-23-2019, 02:35 PM | #70 |
Grand Sorcerer
Posts: 27,968
Karma: 198535232
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm not sure that makes sense, Roger. This plugin creates a new xhtml file out of an image you specify. It doesn't change any existing files and it has no preconceived notions about what you want to do with the newly created one (SVG wrapped images can occur anywhere on an epub). Once this new xhtml file has been created, it's up to you (the user) to decide if it is to be used as the cover page, or if it needs to be included in any html toc or nav documents, or what-have-you.
If you're looking to modify an existing cover page in an epub, I suggest using the built-in Tools->Add Cover feature of Sigil. It will take an image of your choosing, wrap it in an SVG and either create a new cover.xhtml (if no cover-page is already defined), or it modifies an existing cover page (if one is already defined). All pre-existing links would remain intact. Last edited by DiapDealer; 05-23-2019 at 02:45 PM. |
05-24-2019, 01:28 AM | #71 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@DiapDealer
Thanks for your reply. It was just a proposal, if there had been an easy way to do it... When the cover page file name is present in both tocs (it does not happen all the time, it depends of the tool used to produce en ePub) and needs to be changed, I'll rather use the Sigil built-in tool that I did not have considered. |
05-24-2019, 01:36 AM | #72 | |
Guru
Posts: 674
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
If there are any ID anchors in the original file, you can preserve them or adjust any links to them to just be to the file, not the anchor. Epubcheck will tell you if you need to do that. If it's a cover image, as long as the original cover file was tagged as "Cover" (in the OPF), then the Sigil built-in "Add cover" will overwrite it, again preserving all links. Possibly the SVG plugin could have an additional option allowing you to choose the target filename, either the default (new) one as now or an existing one to overwrite. Last edited by AlanHK; 05-25-2019 at 12:23 AM. |
|
06-05-2019, 08:28 AM | #73 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2019
Device: Kindle 3
|
Quote:
Code:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 400 264" xmlns:xlink="http://www.w3.org/1999/xlink"> <image width="400" height="264" xlink:href="../Images/ffdl-0.jpg"/> </svg> |
|
06-05-2019, 09:01 AM | #74 |
Grand Sorcerer
Posts: 27,968
Karma: 198535232
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
More than likely, the image's actual size is not being correctly retrieved by the PIL Python library. This would imply to me that there's probably something wrong with the original images in general. Is ffdl-0.jpg an actual jpg, or does it just have a .jpg extension? How was it created? Are other images' sizes being correctly determined by the plugin, or is it just some images?
Can you share an image that the plugin is "getting wrong?" That would probably be the most helpful thing for debugging purposes. |
06-05-2019, 07:37 PM | #75 |
Zealot
Posts: 131
Karma: 10
Join Date: Jan 2015
Location: Buenos Aires
Device: Android
|
Same issue here with every image i inserted since i use this plugin.
Greetings from the cold Buenos Aires Thomas |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wrap in SVG plugin? | gezginrocker | Plugins | 18 | 07-05-2015 12:20 AM |
svg image on top of a background png image | roger64 | ePub | 25 | 04-24-2015 11:00 AM |
Display of a png image linked to a svg image | roger64 | Editor | 6 | 03-13-2015 06:21 AM |
Image wrap test | Jellby | ePub | 15 | 05-04-2011 02:30 PM |
Combining blockquote with image wrap | WRB | Sigil | 1 | 02-12-2011 07:46 PM |