mirror of
https://github.com/ciromattia/kcc
synced 2026-06-20 21:40:54 +00:00
Fixed an issue in OPF generation for device resolution (fixes #4)
Reworked options system (call with -h option to get the inline help) (fixes #3)
This commit is contained in:
@@ -24,7 +24,7 @@ class ImageFlags:
|
||||
Stretch = 1 << 4
|
||||
|
||||
|
||||
class KindleData:
|
||||
class ProfileData:
|
||||
Palette4 = [
|
||||
0x00, 0x00, 0x00,
|
||||
0x55, 0x55, 0x55,
|
||||
@@ -80,7 +80,7 @@ class KindleData:
|
||||
class ComicPage:
|
||||
def __init__(self,source,device):
|
||||
try:
|
||||
self.size, self.palette = KindleData.Profiles[device]
|
||||
self.size, self.palette = ProfileData.Profiles[device]
|
||||
except KeyError:
|
||||
raise RuntimeError('Unexpected output device %s' % device)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user