View Single Post
Old 12-22-2025, 05:48 PM   #1
Trester99
Member
Trester99 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2024
Device: Kindle Paperwhite
Removing Image File References from OPF

For the last 4 weeks I have spent an incredible number of hours working with AI to develop a Calibre Plugin that will identify books with Duplicate Covers, and provide the user an easy means of deleting these duplicate covers. The plugin code has been completed and I am currently in testing/debug mode.

The program really is amazing, there simply is nothing that can duplicate its capabilities. But having said that, as engineer I am really hoping for a better solution than what AI has developed for removing the duplicate cover. From the beginning, AI has insisted that removing the code from the OPF that references the duplicate image is too problematic. The solution that they have implemented is to simply delete the image file itself and leave the reference in the OPF. This method does work, and I am not aware of any negative consequences to this strategy. But I have to admit, I would much rather find a solution that performs a clean removal of the duplicate cover.

This plugin is not for people who have small libraries, it is intended for users who have large, or very large collections. It simply is not an option to use the book editor to clean up that image and the associated reference. I know that for my collection, if I have to choose between duplicate covers, or some stray code, I will choose the removal of duplicate covers.

I do know that converting the book can fix the OPF file, but converting has potential issues also. I've looked at the capabilities of Polish, and the available plugins and I don't see a solution from that side. So, I am hoping that someone can provide suggestions for achieving a clean removal.
Trester99 is offline   Reply With Quote