Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-31-2025, 04:13 PM   #1
serrnovik
Junior Member
serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.serrnovik for a long time would go to bed early.
 
Posts: 1
Karma: 17644
Join Date: Oct 2025
Device: ipad
[GUI Plugin] n-pages-previews

First of all I would like to thank you the author of the calibre and all the people who are involved in app and plugin development.


Here is my plugin for calibre:

Short description:
Plugin let you generate previews for first N pages of the book that allows quickly preview them.

My use case is sorting books children books to quickly judge if it is worth to read it or not. without the need to open the book which is not instantaneous.


Description

Preview Panel:
- Two-column thumbnail grid displays the first N pages of the selected book.
- One-click on the toolbar icon shows or hides the docked preview panel;


Generate Preview:
- Either from menu or from floating toolbar you generate previews for one or multiple books.

Storage:
Preview images live beside the source PDF in a .previews/ folder, keyed by file path, mtime, page count, width, and quality.
Ghostscript-backed conversion creates JPEGs; if Ghostscript is missing, the generator falls back to placeholder images so the UI remains usable.
No Calibre database tables are altered; settings stay in plugins/n_pages_previews.json.
Configuration Options (Preferences → Plugins → Customize)


Installation:
In Calibre: Preferences → Plugins → Load plugin from file, pick n-pages-previews.zip, then restart Calibre and add the button to your toolbar or menu.
Getting Help
Attached Thumbnails
Click image for larger version

Name:	plugin.png
Views:	50
Size:	867.1 KB
ID:	218953  
Attached Files
File Type: zip n-pages-previews.zip (25.7 KB, 15 views)
serrnovik is offline   Reply With Quote
Old 11-01-2025, 12:57 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,626
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Note that you dont need to rely on ghostscipt, calibre already contains code to render PDF files (this is how the functionality to view the first 10 pages of a PDF to select the cover is implemented). See the page_images() function in metadata/pdf.py
kovidgoyal is offline   Reply With Quote
Advert
Old 11-01-2025, 10:01 AM   #3
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,686
Karma: 7908443
Join Date: Sep 2020
Device: none
Cool plugin, thanks.
Preview panel is something I never thought possible in Calibre UI!
But I'm getting this either on 7.26 portable or calibre main current version:

✗ Error: Could not find Calibre's ebook-convert binary
Attached Thumbnails
Click image for larger version

Name:	MWSnap 2025-11-01, 10_05_32.png
Views:	45
Size:	440.9 KB
ID:	218990  

Last edited by Comfy.n; 11-01-2025 at 10:06 AM.
Comfy.n is offline   Reply With Quote
Old 11-03-2025, 06:29 AM   #4
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 900
Karma: 3501166
Join Date: Jan 2017
Location: Poland
Device: Various
I didn't know you could make a panel like that either!
It opens up a whole new range of possibilities, so I'll have to think about it.
BeckyEbook is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 1877 11-10-2025 10:34 AM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 04:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 06:25 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 10:27 AM.


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