![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
|
Update of the Ubuntu repo with the last version 7.20.
Hello everyone,
I wanted to know if there was a planing of updating the apt repos related to ubuntu with the last version 7.20 ? Presently, we run on the 7.6 which is a bit dated and i have some trouble with ebook-polish with it. Thank you in advance. |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
|
Hello, I have the same problem but for my case I can't update to the 7.20 binaries because I use the file image.py which i have modified to reduce the weight of images contained in an epub during polishing.
Is it possible to update the different repos with the 7.20 version ? Thank you in advance |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
That is a question for the ubuntu project. (Most linix distributions lag most applications by the very nature of their processes. That has advantages and disadvantages.)
Any version of calibre can be installed directly without apt. See the New to calibre? Start Here. https://www.mobileread.com/forums/sh...d.php?t=118558 |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If you mean calibre source on GitHub so you can run calibre with your changed .py file, that is already done. Just follow the instructions in the calibre FAQ to run from source. If you mean something else, what? |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
|
Hello, thank you for your answer.
I tried all the afternoon to install the source form the git repo but without success. I had troubles with the library podofo which is also on a newer version than the repo. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Are you refusing to use the one line binary install script provided by calibre?
You can certainly split it into two lines by downloading the script and inspecting it before executing it. Your willingness to use apt implies a willingness to no require installing from source. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
|
I've tried all afternoon to install calibre with the git repo but I've some troubles with the podofo Library which is also on Ubuntu repo in a version lower than calibre require.
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Don't install from source. Instead run from source. To do this, install the calibre binary from the calibre site, get the calibre source from GitHub, set the env variable, then put your modified .py file in the source tree. This process is easy and avoids the distro release entirely.
How to do all of this is described in the calibre FAQ. Last edited by chaley; 10-19-2024 at 02:29 PM. Reason: Added link to the FAQ |
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Moderator Notice
Double post moved from other thread in the calibre forum. Don't double post. Last edited by chaley; 10-19-2024 at 04:47 PM. |
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
|
Thanks for your answer.
I didn't saw it on the faq so thanks to have told me the procedure. I'll try out tomorrow morning. |
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
The repos are not maintained in any way, shape or form by Kovid.
They are maintained by someone associated with that app in the repo and normally follow the philosophy of the particular distribution, which often includes not bunding an app with dependencies, instead forcing the app to utilize the system supplied version. Sent from my Pixel 7a using Tapatalk |
![]() |
![]() |
![]() |
#12 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
|
So I did install the 7.20 binaries and link the git source which it.
It works but when I modify the images.py under the polish folder the compression with the 7.20 is far less than with the 7.6. I modified the images.py to have a reduction of all the images in an epub with 50% so i've put : Code:
func = partial(encode_jpeg, quality = 50) I tested to put a print in images.py to verify if it was well use and yes. Here the report of the polish : Hello Tom!!! Hello Tom!!! Hello Tom!!! Hello Tom!!! Hello Tom!!! ------------------------------ REPORT ------------------------------ ## Polissage: EPUB ### Amélioration de la ponctuation Aucune ponctuation pouvant être améliorée n'a été trouvée ### Intégration des polices référencées Impossible de trouver les polices de la famille: Helvetica. Elles ne seront pas intégrées. Aucune police intégrée n'a été trouvée ### Aucune police intégrée à mettre en sous-ensemble ### Suppression en cours des règles CSS inutilisées 4 règles de style CSS inutilisées supprimées Aucun sélecteur CSS inutilisé trouvé Aucune feuille de style inutilisée n'a été trouvée ### Compresser les images sans perte OEBPS/Images/orn_1.jpg compressé de 8.3 KB à 577 B octets [réduction de 93.3%] OEBPS/Images/crt.jpg compressé de 8.7 KB à 933 B octets [réduction de 89.6%] OEBPS/Images/orn_2.jpg compressé de 9.1 KB à 1.2 KB octets [réduction de 86.7%] OEBPS/Images/titlepage.jpg compressé de 205.4 KB à 67.9 KB octets [réduction de 66.9%] OEBPS/Images/9781975315702.jpg compressé de 1.2 MB à 1 MB octets [réduction de 11.7%] Taille totale des images réduite de 1.4 MB à 1.1 MB [réduction de 20.6%], 5 images modifiées] ### Mise à jour du livre, si possible Aucune mise à jour nécessaire ---------------------------------------------------------------------- Le polissage a pris: 1.8 seconde(s) Output written to: /home/tom/Documents/Test-LN/fichiers a corriger/5 Centimeters per Second + Children Who Chase Lost Voices/5 Centimeters per Second + Children Who Chase Lost Voices - Complete [Yen Press][Kobo]_polished.epub |
![]() |
![]() |
![]() |
#14 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
|
I said nothing, i'm just dumb.
Thank you everyone for the time you passed to help me. Have a great day |
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
You should have been more specific about your reason for changing calibre. It already provides for selecting any amount of compression for JPEG images. No need to modify any source code.
In the calibre GUI right click on the book, select "Edit book", then in the "Tools" drop down menu select "Compress images losslessly", then check the "Enable lossy compression of JPEG images", then set the compression quality to whatever you like. Well, now that I have written all that, I see that is a lot to go through for every book. I also think the "losslessly" oscures that there is the possibility to enable lossy compression. |
![]() |
![]() |
![]() |
Tags |
calibre, repo, ubuntu, update, version |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Install previous version on Ubuntu | mrgou | Calibre | 2 | 10-04-2020 08:28 PM |
Upgrade from Ubuntu repo version to binary installer | huladaddy | Calibre | 7 | 07-30-2014 02:21 AM |
Ubuntu(Tablet version) on Hp TouchPad | skillachie | Android Devices | 1 | 02-24-2013 01:25 AM |
Latest version for Ubuntu 10.10? | sgt.bilko | Calibre | 9 | 07-13-2011 12:45 PM |
latest version for Ubuntu | Lago | Calibre | 7 | 01-15-2010 01:54 PM |