View Single Post
Old 03-10-2016, 08:37 AM   #10
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: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I can't duplicate this. Even using DNSB's exact cover image code, I can't get Sigil to report that cover.jpg is unused using the Delete Unused Media Files tool. Nor can I get any unused images (included in the archive) to NOT be reported by the same tool.

I agree that a sample (non-copyrighted) epub would help immensely.

CORRECTION: if I have an epub with two manifested images (one named 'cover.jpg' and one named 'cover.jpeg').
1) use Tools->Add cover to create a cover image page using the 'cover.jpeg' image.
2) manually change the file name in the generated cover.xhtml (Code View) page to 'cover.jpg'
3) Run the Tools->Delete Unused Media File tool and the tool will report that 'cover.jpg' is unused. And the cover.jpeg file will be unreported (though that last is sort of understandable since 'cover.jpeg' is still listed in places in the opf file outside the manifest).

Unrelated cosmetic side note: the "Delete Unused Media Files" tool reports an "Unused media files deleted" status message whether the 'OK' button is clicked or the dialog is dismissed with the 'Cancel' button (status message only; images are not deleted when canceling).

Last edited by DiapDealer; 03-10-2016 at 08:41 AM.
DiapDealer is offline   Reply With Quote