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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2010, 05:20 AM   #1
santino1980
Junior Member
santino1980 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2010
Device: Kindle DX
The Economist recipe images are too large

I noticed that when I fetch The Economist the images look pixelized. I opened the same images on my computer just to realize that at 100% the are actually magnified by the factor 2. How can I customize the economist (free) recipe to shrink all the images to 50% (which in fact will be the actual size)?
santino1980 is offline   Reply With Quote
Old 11-01-2010, 06:10 AM   #2
marbs
Zealot
marbs began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
try adding
Code:
    extra_css='img {max-width:100%;}'
marbs is offline   Reply With Quote
Old 11-01-2010, 11:06 AM   #3
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 marbs View Post
try adding
Code:
    extra_css='img {max-width:100%;}'
This allows the image to be as large as the space provided, but no larger. I don't see any CSS in the free Economist, so I would expect the image to be full size, if it fits, not scaled up. However, if the OP has a default device set, the recipe will create images scaled for the screen size of that device. If he then views it on his computer - the image may have been sampled down for the device when the recipe EPUb was created, then scaled up when viewed on a larger computer screen. What device is set for the default? What device is he viewing the recipe on?
Code:
    extra_css='img {max-width:50%;}'
will produce smaller images, but he might be losing resolution due to the default device he's told Calibre he's using. (There may also be some internal style that's not getting stripped that may override some of this.)
Starson17 is offline   Reply With Quote
Old 11-01-2010, 03:21 PM   #4
santino1980
Junior Member
santino1980 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2010
Device: Kindle DX
That didn't help. There is some problem with the image file themselves. When I go to the website from where the economist is being downloaded (feed://feeds.feedburner.com/economist/full_print_edition) and I take any photo from an article, copy it to the desktop and open it (I use preview app on the mac) the image opens blurry on 100%. When I set zoom to 50% it looks sharp. The same happens on my Kindle DX. The images look exactly the same way as they do in preview on my mac when zoom is set to 100% (of course without color on kindle)
santino1980 is offline   Reply With Quote
Old 11-01-2010, 03:35 PM   #5
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 santino1980 View Post
That didn't help.
What didn't help? What did you try?

Quote:
There is some problem with the image file themselves.
Where? What image file are you referring to? The one on the site, or the one in the EPUB after it is downloaded?

Quote:
When I go to the website from where the economist is being downloaded (feed://feeds.feedburner.com/economist/full_print_edition) and I take any photo from an article, copy it to the desktop and open it
I did this.

Quote:
(I use preview app on the mac) the image opens blurry on 100%.
I see the same image on the desktop as on the site. Both look the same to me.

Quote:
When I set zoom to 50% it looks sharp.
A smaller image (with the same number of pixels) looks sharper than the larger version (with the same number of pixels). It is "sharper" but smaller. The image should normally open with one image pixel per display pixel, so you shouldn't see that effect unless you are expanding it somewhere when viewing at "100%". I see it open at one image pixel per display pixel on my desktop, using an image display program and in FireFox.
Starson17 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
Problems with economist recipe lady kay Calibre 1 08-06-2010 07:49 AM
Economist (Free) Recipe geneaber Calibre 2 01-08-2010 09:21 PM
Economist Free Recipe geneaber Calibre 10 12-31-2009 03:45 PM
Problems with Economist recipe 0.5.1 MTBSJC Calibre 7 03-23-2009 01:54 PM
Economist Recipe - broken? dieterpops Calibre 1 02-20-2009 09:14 PM


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


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