09-02-2016, 12:11 AM | #1 |
Guru
Posts: 674
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
SVG images marked as "unused media"
I inserted an image using the "AddImageasSVG" plugin.
Looks fine. Then I ran the "Delete unused media" tool. It wanted to delete the image I had just placed. The page is Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> @page {padding: 0; margin:0} body {text-align: center; padding:0; margin: 0; } </style> </head> <body> <div> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 616 444" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="616" height="444" xlink:href="../Images/map.png"/></svg> </div> </body> </html> Code:
<p><img src="../Images/map.png"/></p> However, the cover image is also SVG, from the "Add cover" tool, but it is not marked for deletion. Last edited by AlanHK; 09-02-2016 at 01:00 AM. |
09-02-2016, 12:39 AM | #2 |
A Hairy Wizard
Posts: 3,208
Karma: 19000001
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I'm certainly not an expert on Sigil programming code, but I would hazard a guess that when using the "Add cover" tool it also semantically defines that image as the "Cover" thus identifying it as used. Whereas the plugin doesn't have another way to force sigil to recognize it as being used. I would therefore bet that Sigil is only looking for the <img> tag instead of the <image> tag when determining if an image is being used.
That would be my guess FWIW....but I'll let the smart guys actually look into it! |
Advert | |
|
09-02-2016, 12:57 AM | #3 |
Guru
Posts: 674
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
09-02-2016, 03:10 AM | #4 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
09-02-2016, 08:49 AM | #5 | |
Grand Sorcerer
Posts: 27,962
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can't reproduce it with 0.9.6 on Windows (not with the latest developer build either). Can you post some detailed steps (if you are indeed using 0.9.6)?
This sounds vaguely familiar--like maybe an older bug that has since been fixed--but I can't seem to find it. EDIT - Perhaps this one from the 0.9.4 changlog: Quote:
Last edited by DiapDealer; 09-02-2016 at 08:54 AM. |
|
Advert | |
|
09-02-2016, 12:36 PM | #6 |
Sigil Developer
Posts: 8,109
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Yes, this was a bug fixed in an earlier release. If you are truly seeing this bug in Sigil 0.9.6, please provide step by step instructions on how to reproduce it.
If you are using a version older than 0.9.6 (see the About menu item for info on Sigil version), then upgrading to the latest version should fix this issue. Thanks, KevinH |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Books marked "Personal" and the [PDOC] tag | Jalathas | Amazon Kindle | 5 | 10-07-2015 04:01 AM |
Is it possible to reject some changes after using "Remove unused CSS tool"? | bowlins | Editor | 7 | 09-02-2014 04:22 AM |
New "remove unused css" tool | BobC | Editor | 4 | 01-25-2014 09:06 PM |
Css media="screen" and media="print" | BrisChri | Sigil | 6 | 05-08-2013 03:12 PM |
Document transferred to the K marked "read-only" Wassup? | KlondikeGeoff | Amazon Kindle | 3 | 08-26-2009 03:58 PM |