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

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-14-2019, 08:50 AM   #1
un_pogaz
Chalut o/
un_pogaz is on a distinguished road
 
un_pogaz's Avatar
 
Posts: 69
Karma: 50
Join Date: Dec 2017
Device: Kobo
Lightbulb [idea] Remove duplicates images

Some books contain duplicate images (sometimes +10 duplicate)
With a little trickery, the Regex and the unused media deletion tool, you can delete a lot of duplicates.
But in some cases, there may be a different image in the middle, or even several duplicate images.

This is where the idea for this plugin comes from:
1) The plugin opens a wall of thumbnail displaying the images of the book (or a check-list with a preview area for quick consultation)
2) We select the images that we consider identical
3) The plugin "merges" the images (renames them with a Regex like this one below, then deletes the images that have become unused)

(Images/0002.jpg|Images/0003.jpg|Images/0006.jpg|Images/0008.jpg)
>
Images/0002.jpg

Thank you in advance.

Last edited by un_pogaz; 05-16-2019 at 08:50 AM.
un_pogaz is offline   Reply With Quote
Old 05-25-2019, 01:03 AM   #2
AlanHK
Evangelist
AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'AlanHK knows the difference between 'who' and 'whom'
 
AlanHK's Avatar
 
Posts: 491
Karma: 10232
Join Date: Apr 2014
Device: PW-3, Android phone
Yeah, it's really annoying to open a file and see it has 50 names for some ornament, all indistinguishable, but not binary identical.

I use Irfanview's Thumbnail view, then rename in Sigil to a common prefix, then use a regex to make all similar images link to one image, remove unused images.

This can reduce the filesize by 50% or more and make the code more intelligible.
AlanHK is offline   Reply With Quote
Advert
Old 05-25-2019, 12:35 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 23,186
Karma: 24100002
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A, Kobo Aura2
I use Report: Images part of the editor.
You can sort by size and visually see the image.
Then I REGEX the books Image code (NEVER use REPLACE ALL) AND Replace 1-at-a-time that I am really sure are identical (subtle diffs has got me before).
Then I rescan Reports, and select n delete those with 0 uses (yes, you can delete from reports)
theducks is offline   Reply With Quote
Old 05-25-2019, 03:25 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,846
Karma: 25839483
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by theducks View Post
Then I rescan Reports, and select n delete those with 0 uses (yes, you can delete from reports)
That's a handy bit of knowledge.
DNSB is offline   Reply With Quote
Old 05-28-2019, 03:21 AM   #5
un_pogaz
Chalut o/
un_pogaz is on a distinguished road
 
un_pogaz's Avatar
 
Posts: 69
Karma: 50
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by theducks View Post
I use Report: Images part of the editor.

What/Where is it's this feature?
un_pogaz is offline   Reply With Quote
Advert
Old 05-28-2019, 03:30 AM   #6
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 13,306
Karma: 10793754
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by un_pogaz View Post

What/Where is it's this feature?
Tools->Reports->Image Files

BR
BetterRed is offline   Reply With Quote
Reply

Tags
duplicates

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
easiest way to remove duplicates rjherald Library Management 2 07-02-2016 02:48 PM
Remove duplicates + images absconditus Recipes 0 09-24-2014 07:20 PM
Duplicates handling with Find Duplicates plugin erfjr Calibre 0 03-05-2013 02:52 PM
Found duplicates - but how to remove? Motomaggot Calibre 7 02-07-2012 09:22 PM
My "read" tag idea enhancement for Calibre idea rcuadro Calibre 10 01-20-2011 04:23 PM


All times are GMT -4. The time now is 09:03 AM.


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