Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-02-2016, 12:11 AM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
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>
If I add a line above the </body>:
Code:
    <p><img src="../Images/map.png"/></p>
Then that makes it "used".

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.
AlanHK is offline   Reply With Quote
Old 09-02-2016, 12:39 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 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!
Turtle91 is offline   Reply With Quote
Advert
Old 09-02-2016, 12:57 AM   #3
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Turtle91 View Post
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.
Seems to be the case.

If I remove the "Cover Image" semantic tag from cover.jpeg, it also now is "unused".
AlanHK is offline   Reply With Quote
Old 09-02-2016, 03:10 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AlanHK View Post
Seems to be the case.

If I remove the "Cover Image" semantic tag from cover.jpeg, it also now is "unused".
I haven't been able to reproduce this behavior with Sigil 0.9.6.
Are you using an older Sigil version or a portable Sigil version?
Doitsu is offline   Reply With Quote
Old 09-02-2016, 08:49 AM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,545
Karma: 193191846
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:
- Make sure all referenced resources are found for Delete Unused Media

Last edited by DiapDealer; 09-02-2016 at 08:54 AM.
DiapDealer is offline   Reply With Quote
Advert
Old 09-02-2016, 12:36 PM   #6
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,630
Karma: 5433388
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
KevinH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 07:02 PM.


MobileRead.com is a privately owned, operated and funded community.