08-14-2014, 01:35 AM | #1 |
Member
Posts: 20
Karma: 10
Join Date: Oct 2012
Device: Samsung Galaxy S3
|
Modify Built-In Recipe to Eliminate Images?
I am trying to use the Vancouver Sun recipe, but the final downloaded product is way too large to then email to my kindle (50+ MB).
I would like to modify the recipe to ignore images and not download them. Is this something that is easy to do? |
08-14-2014, 01:58 AM | #2 |
creator of calibre
Posts: 44,654
Karma: 24966646
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
compress_news_images = True
|
Advert | |
|
08-14-2014, 02:20 AM | #3 |
Member
Posts: 20
Karma: 10
Join Date: Oct 2012
Device: Samsung Galaxy S3
|
I love your efficient, to-the-point replies! And thanks for replying so quickly.
Does that line eliminate the images, or compress them like it suggests? Is there an easy way to convert the images to black and white as well? Would the savings be worth it? |
08-14-2014, 02:58 AM | #4 |
creator of calibre
Posts: 44,654
Karma: 24966646
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
compresses and no.
|
08-15-2014, 02:33 AM | #5 |
Member
Posts: 20
Karma: 10
Join Date: Oct 2012
Device: Samsung Galaxy S3
|
|
Advert | |
|
08-15-2014, 04:41 PM | #6 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Added to calibre, so you can get rid of the custom recipe next release.
https://github.com/kovidgoyal/calibr...1c663772f2719a |
08-15-2014, 05:47 PM | #7 | |
Member
Posts: 20
Karma: 10
Join Date: Oct 2012
Device: Samsung Galaxy S3
|
Quote:
But, unfortunately everyone of my recipes are custom, because I have to manually add: timefmt = '' BTW, do you know why that isn't a standard? Also, do you know if there is an easy way to check to see if any of the built-in recipes have changed between calibre updates? Alternatively, do you know an easy way to update custom recipes with changes to the built-in recipes? |
|
08-15-2014, 05:58 PM | #8 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Any updated recipes will be mentioned as such on the changelog: http://calibre-ebook.com/whats-new.
This past update 1.48 changed the recipes for Maximum PC and El Correo. Why do you need to change timefmt? |
08-15-2014, 06:24 PM | #9 |
Member
Posts: 20
Karma: 10
Join Date: Oct 2012
Device: Samsung Galaxy S3
|
I download news, and email the files automatically to my Kindle. The Kindle treats them as periodicals. If each days' edition of a particular news source has the same name, then the Kindle files older editions in a special folder called "Periodicals: Back Issues". (Forgive me if you know all of this, but this may be helpful to others.)
It appears that most (maybe all?) built-in recipes include some form of the date in their title, meaning that the Kindle will treat each edition of a particular news source as unique, therefore never triggering any filing into the "Back Issues" folder. i.e New York Times - Aug 15, 2014; New York Times - Aug 14, 2014; etc. If, however, I add the "timefmt = ''" statement to the recipes, the titles of those recipes will not include the date, and the proper filing on the Kindle will occur. i.e. New York Times. It would be really cool if there was a way to change this globally, such as to have a checkbox asking "Include the date in the title? <yes,no>?" |
08-15-2014, 06:39 PM | #10 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Thanks for the explanation. That does make sense, and I like the idea of the checkbox. I am sure you aren't the only one who emails them.
|
08-15-2014, 10:41 PM | #11 |
creator of calibre
Posts: 44,654
Karma: 24966646
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you have your output profile set to kindle, the date is not included in the titles. https://github.com/kovidgoyal/calibr.../news.py#L1402
|
08-17-2014, 10:06 PM | #12 | |
Member
Posts: 20
Karma: 10
Join Date: Oct 2012
Device: Samsung Galaxy S3
|
Quote:
Could I suggest that the "Profile description" explain a bit more the significance of this setting. For instance, it is not obvious that by selecting "Kindle", any news source I download will not contain the date in the title like it will for other profiles (I presume.) The Profile description for the Kindle describes the screen size as 525 x 640. I know that the screen size is actually 600 x 800. Why the discrepancy? The one thing I notice is that calibre-generated covers (the image with the vertical books) do not fill my screen entirely. There is a white band at the top and bottom of the screen, so it looks like the image may be formatted for the more squat 525 x 640 aspect ratio. Should the Kindle profile be changed? Should/could I use another profile with a matching aspect ratio and still have the date not included in the title? Are there any other features the Kindle profile provides? |
|
08-17-2014, 11:48 PM | #13 |
creator of calibre
Posts: 44,654
Karma: 24966646
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
THe resolution in the profile is the actual useable resolution on the screen.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Modify large Images without conversion | mehetabelo | Plugins | 4 | 03-31-2014 09:07 PM |
Alter built-in recipe for IP-based authentication | barium | Recipes | 0 | 05-19-2012 03:20 AM |
Utne Reader built-in recipe not working | dexy | Recipes | 0 | 08-30-2011 06:56 PM |
Tricky problem with built-in recipe - need your help.... :( | stachuman | Recipes | 3 | 05-04-2011 04:08 PM |
Adding a feed to the built-in NY Times recipe | t0s | Recipes | 3 | 03-03-2011 12:26 PM |