@ -230,6 +230,11 @@ class Bureau(object):
else:
self.smprint["profile"] = printcaps.get_profile(profile)
page_width = self.smprint["profile"].profile_data['media']['width']['pixels']
if page_width == "Unknown":
page_width = 576
self.smprint["width"] = int(page_width)
self.lp = {}
self.lp["name"] = printcfg["largeprinter"]["name"]
self.lp["papersize"] = printcfg["largeprinter"]["papersize"]
@ -173,7 +173,7 @@ class PublicRelations(Bureau):
im = PIL.Image.open(filename)
if im.mode in ("L", "RGB", "P"):
im = PIL.ImageOps.equalize(im)
im.thumbnail((self.smprint["width"], 576), PIL.Image.ANTIALIAS)
im.thumbnail((self.smprint["width"], 960), PIL.Image.ANTIALIAS)
prn.image(im, impl="bitImageColumn")
tw_shortcode = self.short_tweet_id(t["id_str"])