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".