Using output width and height options causes error on Windows #4

Closed
opened 3 years ago by josch · 0 comments
josch commented 3 years ago
Owner

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

*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 <module> 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
josch closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#4
Loading…
There is no content yet.