rupor-github / fb2mobi

[DEPRECATED] fb2mobi - derived from fb2conv 1.5.4
http://www.the-ebook.org/forum/viewtopic.php?t=30380
MIT License
103 stars 13 forks source link

max-width and max-height are not supported by Kindle readers #22

Closed CrazyCoder closed 7 years ago

CrazyCoder commented 7 years ago

default.css contains the following:

.image img {
    max-width:100%; 
    max-height:100%;
}

When converting a book, kindlegen reports the following:

Warning(htmlprocessor):W28001: CSS style specified in content is not supported by Kindle readers. Removing the CSS property: 'max-width' in file: C:\Users\serge\AppData\Local\Temp\tmpizlduo59\OEBPS\stylesheet.css

Warning(htmlprocessor):W28001: CSS style specified in content is not supported by Kindle readers. Removing the CSS property: 'max-height' in file: C:\Users\serge\AppData\Local\Temp\tmpizlduo59\OEBPS\stylesheet.css

Probably this section can be removed from CSS.

rupor-github commented 7 years ago

default.css in distribution is an example only - it is supposed to be customized by users.

Having said that - fb2mobi sometimes is used to produce epub files where those properties actually make sense. Since there is no harm in having those warnings (and the alternative is to offer different sample default.css files) I do not see this going away any time soon.