Using output width and height options causes error on Windows #4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
By josch on 2015-03-15T09:41:46.449Z
Created by: dgonyier
Not sure if this is windows specific or not, but the following command line causes an error:
C:> img2pdf.exe -o "output.pdf" -d 200 -x 612 -y 792 "input.jpg"
Traceback (most recent call last):
File "C:\Python27\Scripts\img2pdf-script.py", line 9, in
load_entry_point('img2pdf==0.1.3', 'console_scripts', 'img2pdf')()
File "C:\Python27\lib\site-packages\img2pdf.py", line 358, in main
args.subject, args.keywords, args.colorspace, args.verbose))
File "C:\Python27\lib\site-packages\img2pdf.py", line 287, in convert
pdf.addimage(color, width, height, imgformat, imgdata, pdf_x, pdf_y)
UnboundLocalError: local variable 'pdf_x' referenced before assignment
Imported comments:
By josch on 2015-01-21 10:03:57 UTC
I made a new release, can you still see this problem?
By dgonyier on 2015-02-06 20:40:05 UTC
Tested same command with img2pdf (0.1.4) seems to be working ok