![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
[bug, 5.34.0] Can't paste cover & TOC editor loses input
Hi
![]() It has been some time since I bought a few e-books. Since that time I've switched from Windows 10 to Debian 11 Bullseye. Obviously I'm still running Calibre, and I also copied my configuration folder from Windows to Linux. Everything seems to be working fine, except for two things: 1. When I try to paste a cover in the metadata window, it doesn't work. 2. The TOC seems to sometimes not store changes. Reproduction for 1: - Open Firefox. - Find an image (and make sure the browser only displays the image.) - Right-click the image => Copy - In Calibre => Paste Cover The cover is not pasted. It WAS copied though, because when pasting it as a new image in GIMP (even without copying again), it works. Something even stranger: - Open Firefox. - Find an image (and make sure the browser only displays the image.) - Right-click the image => Copy - Paste the image in GIMP - Resize the image to be smaller - Select All and copy the image - In Calibre => Paste Cover Cover is not pasted. Additionally: GIMP crashes. (It just disappears.) GIMP does not crash when pasting the cover into a different program. Reproduction 2: - Open the TOC Editor - Make some changes - Click OK - Open the editor again. Sometimes, the changes are not saved. Most of the time they are, but sometimes not. I have not yet been able to determine why. System: - Intel i7-6700K 4 GHz, 32 GB RAM, GTX 1070 (and some SSD's and HDD's) - Debian 11 Bullseye, 64-bit, desktop KDE Plasma 5.20.5 - All installed software comes from the Debian Reposity, except: * Rust programming language (installed from the Rust-lang site. Should not have influence.) * Go programming language (installed from the Go-lang site. Should not have influence.) * LibreOffice (Flatpak; should not have influence.) * GIMP (Flatpak) * Calibre (Official version from the Calibre site & FlatPak version) So I tested both the official version and the Flatpak version, and they both have both problems. Tonight I can try and test the copy/paste with the repository version of GIMP, but the TOC editor problem is obviously independent from this. Does anyone have any thoughts or suggestions? I'm happy to test if necessary. I could test the Repository version from Calibre, but I don't know if it is possible. My Windows-version was already beyond 5.12 when I switched in June, so the config folder go from (at least) that version back to 5.12. PS: It looks as if drag-and-dropping the cover from the browser to the metadata windows SEEMS to work, but when clicking OK to save everything, the cover is not saved. Last edited by Katsunami; 12-20-2021 at 11:26 AM. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
I've dropped back to version 5.12 from the Debian repository. The problem with copy/paste still exists.
However, it seems as if it DOES work, if I make sure that both sides of an image are not longer than 1000 pixels. I'll have to test a bit more to be sure. (I do have images larger than that as covers, and importing the images from a file works, up to an including at least 2300 pixels on the long end.) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,016
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Save the cover to disc, then in Metadata editor, browse for cover. Really if it's anything important you might want a separate save of a cover anyway.
PS. I never use flatpack if a non-flatpack version is available. Flatpack is flaky & inferior. I use Linux Mint 20.1, Mate Desktop. I have Chromium, Firefox and Waterfox browsers. Viber, Calibre & Signal from their sites, not distros. Copy & paste from Gimp to Viber makes Gimp exit. Copy & paste from Image Viewer to Viber does nothing. I only put covers into Calibre via Download or Browse in metadata editor . I'd assumed the Calibre preview thumbnail of cover copy/paste is only for inside Calibre (which works). |
![]() |
![]() |
![]() |
#4 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Go to Preferences > Tweaks > The maximum width and height for covers stored in the Calibre library I have mine set to 2000, 4000. It much larger then I want, but it means I can load really large covers and then resize them in the editor. Now go put back 5.34.0. |
|
![]() |
![]() |
![]() |
#5 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Quote:
Quote:
Quote:
I've installed 5.34.0 again indeed; I'll have to watch out for the TOC editor though. For some reason it seems to be unreliable, but I can't really test it. Often it works, but sometimes it loses information. I'll just have to save every 5 edits or so. Last edited by Katsunami; 12-20-2021 at 03:44 PM. |
||||
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,185
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
using a new built of: Linux Mint 20.2 Cinnamon 5.0.7 Kernel: 5.4.0-91-generic x86_64 bits: AMD Ryzen 7 2700X Firefox 95.0.1 what file manger are you using? I am using Nemo 5.0.5 Can you set up test system on a usb stick use for troubleshooting purposes? bernie |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Copy-Paste from Firefox to other programs work. Copy-Paste from GIMP to other programs also works. It's only Calibre that doesn't paste the images... but sometimes it does. (As I posted earlier: I think it has to do with the size, but I haven't been able to verify because the behavior seems to be almost random.) I can get covers into Calibre by dragging-and-dropping or by saving and exporting, so I can work around this issue. The more bothersome thing is that it seems I cannot be sure that the TOC-Editor actually saves the TOC. (I'm cleaning up the book's TOC while also having the book open to find the chapter headings. Could that be an issue?) While I'm willing to test stuff, I'm not going to install or test on a completely alternative system. I don't have the time for that right now. This is just a Debian 11.2 Bullseye installation, as standard as you can get it. Everything now comes from the repository, except: - Libreoffice (the Flatpak version is just a LOT smaller for some reason) - Calibre (from the Calibre site) - Rust and Go (from their respective sites; shouldn't be an issue.) Last edited by Katsunami; 12-20-2021 at 06:57 PM. |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Open the book using edit book and use the toc editor inside it, you wont have any issues. As for your copy paste problems, no clue.
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Is it indeed a problem to have the book open in the viewer, if you are editing the TOC at the same time? (I was fixing some stuff in there after splitting an omnibus, so I had to both be able to see the actual chapter and section headings and edit the TOC at the same time.) |
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,466
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
I've been splitting off a huge omnibus into separate books. The TOC of the omnibus is crap though, so I'm adding one through the book's links and headers, and then fixing the stuff which isn't correct. There have been times where I fixed 30+ chapter headings in one go and then found out the editor didn't save them when you open the book in the viewer for the final check. Now I save every 5-10 fixes. That would be a bug. I can live without the copy-paste; I've had problems with that between programs in Linux before. Drag / drop from the browser works, import from file works, so I can get a cover into a book one way or another. |
|
![]() |
![]() |
![]() |
#12 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If the clipboard contents includes an image file it will become the cover of the books You can give it shortcut, for me its Alt+Shift+V BR |
|
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Thanks; I'll look into it. Could that be the problem... that KDE includes a clipboard manager by default? (I.e., it holds a whole bunch of copied stuff.) If you just paste in a program without doing anything special, the last thing you copied should be pasted, however.
|
![]() |
![]() |
![]() |
#14 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
A single clipboard item can reference multiple objects (e.g. a jpeg, a pdf and and epub), which is what Kovid is exploiting here. I create new items in my media library by adding an MP4 of a newsclip, I then add a cover and transcript files via Ctrl+C in my file manager and Alt+Shift+V in calibre. BR |
|
![]() |
![]() |
![]() |
#15 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
bug: toc editor doesn't save the edit | davidhcje | Editor | 7 | 10-23-2021 11:27 PM |
[Bug/Strange behavior] Can't paste cover from clipboard to GIMP | Katsunami | Calibre | 9 | 01-25-2017 10:10 AM |
[Bug - Calibre 2.51, Win10 x64] ToC Editor cannot move titles | Katsunami | Calibre | 19 | 02-14-2016 11:49 PM |
TOC editor minor bug | eMole | Calibre | 1 | 09-14-2014 06:31 AM |
Inline TOC loses formatting | phossler | Editor | 3 | 06-22-2014 12:31 PM |