01-25-2016, 04:14 PM | #1 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Jul 2009
Device: hp ipaq hx2750
|
convert ODT with multiples svg to epub double the images [Solved]
hello all,
on linux with LOv5 I create an empty document in LibreOffice. I create with inkscape 2 images that I save as svg I import in my LibreOffice document the 2 svg, then save it in odt format I insert the odt in calibre library then convert it to epub my svg images end up been doubled and each on top of the other like if the svg format is converted to another format but both format are still here any idea how I could solve this issue ? thx reup Last edited by reup; 01-27-2016 at 03:02 AM. |
01-25-2016, 09:12 PM | #2 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Advert | |
|
01-26-2016, 07:08 AM | #3 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Jul 2009
Device: hp ipaq hx2750
|
I apologize, I will follow the instruction and post here again.
ruep |
01-26-2016, 08:24 AM | #4 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Jul 2009
Device: hp ipaq hx2750
|
hello again,
I have attached to this post a zip file with 11.odt original file before I include it in calibre 11 - unknow.odt file odt included in calibre 11 - unknow.epub conversion by calibre from odt to epub job_details is the file with the .... job details metadata.opf is the file opf found in the calibre created folder in my 2 odt, there is only one version of each images, in the epub, there seems to be 1 version in png format and one in svg format for info (this is not a comparison as I am very grateful for your work), I have done the conversion with the LO plugin writer2epub and did not have this issue reup |
01-26-2016, 10:54 PM | #5 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your ODT file contains duplicate copies of the image, in png and svg format, they are drawn on top of each other, so they are visible. Remove one of the copies and you will be fine.
|
Advert | |
|
01-26-2016, 11:19 PM | #6 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Probably because LibreOffice does stupid things like storing a PNG fallback when you insert an SVG image, as described here: https://www.bountysource.com/issues/...-into-the-file
I suggest saving your ODT as docx, that might workaround the behavior. |
01-27-2016, 03:02 AM | #7 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Jul 2009
Device: hp ipaq hx2750
|
Kovidgoyal,
I am reading the bug info you send for LO and it seems like something done by them. maybe they will include an option to not have a backup of the images, it looks like it is done for reverse compatibility so with time it should be removed. but this has nothing to do with Calibre thanks reup |
01-27-2016, 03:35 AM | #8 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I added code to calibre to ignore the fallback image: https://github.com/kovidgoyal/calibr...8518a372adb2cb
|
01-27-2016, 03:39 AM | #9 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Jul 2009
Device: hp ipaq hx2750
|
no wonder Calibre is the best of its genre, I never saw such a reactivity
thanks again reup |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conversion from xhtml to epub loose svg images | pwessel | Conversion | 3 | 05-24-2015 11:29 PM |
SVG images not going into the e-book | bkleine | Conversion | 1 | 11-23-2014 09:01 PM |
can I use SVG images in mobi? | sarah_pnix | Kindle Formats | 4 | 01-07-2013 04:21 PM |
convert odt to epub | Terry@nz | Conversion | 0 | 10-26-2012 12:48 AM |
RTF to epub convert images turn out small | sassanik | Calibre | 1 | 10-16-2010 12:14 AM |