more verbose output

This commit is contained in:
josch 2013-10-21 16:25:45 +02:00
parent 6d971a5245
commit 19781f21bd

View file

@ -123,11 +123,13 @@ def main(images, dpi, title=None, author=None, creator=None, producer=None,
dpi_x, dpi_y = dpi, dpi dpi_x, dpi_y = dpi, dpi
else: else:
dpi_x, dpi_y = imgdata.info.get("dpi", (96, 96)) dpi_x, dpi_y = imgdata.info.get("dpi", (96, 96))
debug_out("input dpi = %d x %d"%(dpi_x,dpi_y))
imgformat = imgdata.format imgformat = imgdata.format
if colorspace: if colorspace:
color = colorspace color = colorspace
else: else:
color = imgdata.mode color = imgdata.mode
debug_out("input colorspace = %s"%(color))
debug_out("width x height = %d x %d"%(width,height)) debug_out("width x height = %d x %d"%(width,height))