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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-21-2026, 10:13 AM   #181
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: 46,236
Karma: 29630732
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just FYI you can use the calibre ebook-edit program for this.

ebook-edit file.epub name/of/image/file/inside/the/epub.jpeg

You would need some wrapper code to put the image into an epub skeleton before calling ebook-edit and then extracting the image after ebook-edit returns, but that is trivial to do.
kovidgoyal is offline   Reply With Quote
Old 04-21-2026, 10:51 AM   #182
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 357
Karma: 518
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by KevinH View Post
I am open to suggestions on how to handle this, the options are:

1. Add to Sigil for everyone (code is small)
2. Add to Sigil for MacOS only
3. Create a separate Helper app for everyone (but then we have to make releases)

Thoughts?
#3 would involve ongoing work so I'd go for #1 - make it available for everyone and accessible from the drop-down context in the browser pane or from the image, once opened.
philja is offline   Reply With Quote
Old 04-21-2026, 05:17 PM   #183
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: 51,815
Karma: 180002962
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I'd go with the add to Sigil for everyone.
DNSB is offline   Reply With Quote
Old 04-21-2026, 05:42 PM   #184
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 83,279
Karma: 153646249
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
My suggestion is to add to Sigil for everyone.
JSWolf is offline   Reply With Quote
Old 04-22-2026, 04:57 PM   #185
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,666
Karma: 6774048
Join Date: Nov 2009
Device: many
Okay here is a partially working first attempt at replacing the current static QtWebEngine-based ImageTab with a new ImageTab that allows some basic image adjustments.

See the attached screenshot.

Note, the toolbar shows some bad png icons I had along side the free ones that came with the original code. If we do decide to go with way then I am hoping BeckyEbook will volunteer some of her excellent artwork to create svg based icons for all 3 icon themes.

The code as shown in the screen shot actually works but I have broken both webprinting and zooming in and out as well as broken context menus that I will have to work on yet.

But I wanted peoples feedback on making ImageTabs be able to adjust images by cropping, rotate right, rotate left, resizing, etc. instead of just being a static.

All thoughts welcome.
Attached Thumbnails
Click image for larger version

Name:	New_ImageTab.jpg
Views:	39
Size:	395.5 KB
ID:	222779  
KevinH is offline   Reply With Quote
Old 04-22-2026, 05:36 PM   #186
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: 51,815
Karma: 180002962
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For me, the zoom actions (in, out, screen) work but zoom is not maintained when rotating or most of the other actions. Cropping seems to disregard the selected part of the image, instead fitting part of the unzoomed image into the selection. Resize seems to work—I used it to resize the section break images in one ebook where some dimglow decided to make each instance a separate image sized them at 1920x1080 for 62 identical images. Resizing one and then doing a search/replace to replace the other 61 file names.

Last edited by DNSB; 04-22-2026 at 07:23 PM. Reason: Removed link to installer.
DNSB is offline   Reply With Quote
Old 04-22-2026, 06:24 PM   #187
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,666
Karma: 6774048
Join Date: Nov 2009
Device: many
But I haven't pushed anything to master, yet! Just an early version to my own repo.
It is not yet ready for testing. Zoom is broken as it is not tied to Sigil Zoom yet. I will check why Zoom is lost on rotate, crop, etc, and crop used to work but once inside a tab it seems to have failed somehow. Things to explore.

It is not ready for general testing.

All I am looking for is would people be okay (assuming I can get it all working) with our current static ImageTab going away and being replaced by something like this.

Last edited by KevinH; 04-22-2026 at 07:32 PM.
KevinH is offline   Reply With Quote
Old 04-22-2026, 07:24 PM   #188
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: 51,815
Karma: 180002962
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I've removed the link to the installer and will wait until the code is moved to master before posting a new link.
DNSB is offline   Reply With Quote
Old 04-22-2026, 07:35 PM   #189
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,666
Karma: 6774048
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by DNSB View Post
I've removed the link to the installer and will wait until the code is moved to master before posting a new link.
Thank you! I will keep pushing stuff to my personal repo. I think I have now fixed zoom and can now keep it after rotates and other actions.

But crop is still broken as I need to properly descale and translate coordinates somehow. Still working on it. Hopefully by end of day tomorrow most of the bugs will be ironed out.
KevinH is offline   Reply With Quote
Old 04-23-2026, 04:56 AM   #190
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 692
Karma: 721246
Join Date: Dec 2017
Device: Kobo
What is the action of the fourth icon?

Also, if crops is pretty easy-okay for PNG, for JPEG is not the same and I recommend to checkout and use jpegtran for a lossless resize and crops.

Last edited by un_pogaz; 04-23-2026 at 04:58 AM.
un_pogaz is offline   Reply With Quote
Old 04-23-2026, 08:42 AM   #191
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,420
Karma: 211545324
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by un_pogaz View Post
What is the action of the fourth icon?
Looks like Resize to me. Rotate left, Rotate right, Crop, Resize.
DiapDealer is offline   Reply With Quote
Old 04-23-2026, 09:03 AM   #192
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,666
Karma: 6774048
Join Date: Nov 2009
Device: many
Yes, and the plan is to remove the zoom in and zoom out icons since the zoom bar in Sigil itself should control Zoom level leaving just the zoom to fit button in the zoom section.

All cropping and resizing is handled via QImage operations using QTransform as this approach should work across all image types supported by QImage.
KevinH is offline   Reply With Quote
Old 04-23-2026, 09:05 AM   #193
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,666
Karma: 6774048
Join Date: Nov 2009
Device: many
Still looking for thoughts on the general idea. Is this new ImageTab acceptable assuming I can get the bugs and nits ironed out?
KevinH is offline   Reply With Quote
Old 04-23-2026, 11:05 AM   #194
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 692
Karma: 721246
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by KevinH View Post
Still looking for thoughts on the general idea. Is this new ImageTab acceptable assuming I can get the bugs and nits ironed out?
Yes, very good. Probably make that the toolbar use the same heigth that the toolbar setting, but details.
un_pogaz is offline   Reply With Quote
Old 04-23-2026, 12:18 PM   #195
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,666
Karma: 6774048
Join Date: Nov 2009
Device: many
Okay, I have pushed all bug fixes to my personal repo:

https://github.com/kevinhendricks/Sigil

It seems to work now. I think I have tracked down and fixed most of the bugs, tied it to the Sigil zoom bar, put back in support for WebPrinting, removed the QMenuBar and replaced it with a pop-up Context menu, etc.

I did not push this to normal master because all my new icons are not svg. And they do not work well under both light and dark themes as they are simple pngs that virtually disappear under Dark modes. Also I have no icons versions at all for the other two major icon themes fluent, and material.

But what is there should work. So if you build your own, please pull Sigil master from my personal repo and give it a build. Let me know if you run into any trouble with basic functionality (aside from the known icon inconsistent with dark themes known issue).

Note: The web printer will only work on the actual file from the epub, and not the one with the changes you just made *until* you save your changes.

All feedback welcome. If we decide to go this way, perhaps @BeckyEbook will take a shot at making us some good svg icons that work under both dark and light themes (please, please, please!).

I am also thinking of adding a context menu item to toggle the toolbar showing, so if you do not want to use the toolbar you do not have to look at it and you can stick to the context menu.

Any and all thoughts on this potential change, please let me know.

I have added a new screenshot below:
Attached Thumbnails
Click image for larger version

Name:	AdjustImage_new.png
Views:	21
Size:	261.2 KB
ID:	222810  

Last edited by KevinH; 04-23-2026 at 12:23 PM.
KevinH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions for Sigil Improvements or New Features KevinH Sigil 241 03-02-2026 01:09 PM
Suggestions for Sigil Improvements or New Features KevinH Sigil 168 11-18-2025 12:23 PM
Ideas for New Improvements or Features KevinH Sigil 97 04-09-2025 09:45 AM
What Features or Tools does Sigil Still Need Yet? KevinH Sigil 175 03-06-2021 09:11 PM
Improvements/bugs/features dontcrash KOReader 10 10-23-2019 10:05 AM


All times are GMT -4. The time now is 10:15 PM.


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