View Single Post
Old 03-21-2019, 01:05 AM   #12
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: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
If I open a good epub in Sigil, delete the declaration of the image in the opf and save it, the image is still in the epub archive.

Then if I reopen it, there is no warning. The F7 check says "No problems found!" (even though there is still a page that references the image).

-- epubcheck says :

Quote:
WARNING(OPF-003): Item 'OEBPS/Images/img001.jpg' exists in the EPUB, but is not declared in the OPF manifest.
ERROR(RSC-008): Referenced resource is not declared in the OPF manifest.
If I then make any random change (clean HTML, e.g.), save, the new file has lost the image.

This is perfectly correct, but a warning that something is amiss on opening would be helpful. You can unzip it and import the image or whatever; but you need to know the file was there.

So the workaround is to do an epubcheck immediately on opening a new file, then exit without saving if you see warning "OPF-003".

Last edited by AlanHK; 03-21-2019 at 01:10 AM.
AlanHK is offline   Reply With Quote