Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-19-2011, 10:57 AM   #16
Tegan
Connoisseur
Tegan began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
Quote:
Originally Posted by Starson17 View Post
Post your recipe if you need help. It works for me. I tested in the Explosm recipe (at your original link) for which that code was originally designed, but it should work in others.
Sadly, I'm on the run at the moment and can't stop to grab it, but if you could post the Explosm recipe maybe I could see what I've done wrong. Lord knows my ignorance keeps getting in the way. Gotta run.
Tegan is offline   Reply With Quote
Old 01-19-2011, 12:05 PM   #17
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Tegan View Post
Sadly, I'm on the run at the moment and can't stop to grab it, but if you could post the Explosm recipe maybe I could see what I've done wrong. Lord knows my ignorance keeps getting in the way. Gotta run.
It's at the link you posted where the original non-working code is located.
https://www.mobileread.com/forums/sho...postcount=2263

Just substitute my new code for the non-working postprocess_html in that link.
Starson17 is offline   Reply With Quote
Old 01-19-2011, 03:16 PM   #18
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Tegan View Post
I could see what I've done wrong. Lord knows my ignorance keeps getting in the way.
I forgot to give you the imports:
Code:
from calibre.utils.magick import Image, PixelWand
Without those, the image processing won't happen. I've updated the reusable recipe code post.
Starson17 is offline   Reply With Quote
Old 01-19-2011, 07:40 PM   #19
Tegan
Connoisseur
Tegan began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
Quote:
Originally Posted by Starson17 View Post
I forgot to give you the imports:
Code:
from calibre.utils.magick import Image, PixelWand
That was the issue. I got the syntax completely wrong on the import. Looks really nice now! Just tweaking it for width and height. Thank you!
Tegan is offline   Reply With Quote
Old 01-20-2011, 09:19 AM   #20
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Tegan View Post
That was the issue. I got the syntax completely wrong on the import. Looks really nice now! Just tweaking it for width and height. Thank you!
You're welcome. You may want to set min/max height at less than 100%. I suspect about 95% or a bit less would be right. Unlike the width, where it's set to 100%, the height has to accommodate the text above and below the image.
Starson17 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for recipes: Cyanide and Happiness , SMBC bluewolf8 Recipes 5 01-02-2011 01:06 PM
Request for recipes of sites with no rss PipSqueak Recipes 1 10-16-2010 10:05 PM
Request for recipes mccande Calibre 4 12-26-2008 01:05 AM
Request for Recipes GPThomson Calibre 2 11-21-2008 12:19 PM
Request for Recipes girlperson1 Calibre 4 11-12-2008 03:25 PM


All times are GMT -4. The time now is 07:56 AM.


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