Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum supported image dimension is 65500 pixels #3

Open
zhouqzzw opened this issue Jan 6, 2019 · 0 comments
Open

Maximum supported image dimension is 65500 pixels #3

zhouqzzw opened this issue Jan 6, 2019 · 0 comments

Comments

@zhouqzzw
Copy link

zhouqzzw commented Jan 6, 2019

I got an error when I tried to run test.py.
Maximum supported image dimension is 65500 pixels
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1683, in
main()
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1677, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1087, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/tagan-master/test.py", line 63, in
save_image(img, os.path.join(args.output_root, 'original.jpg'), pad_value=1)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\torchvision\utils.py", line 104, in save_image
im.save(filename)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\Image.py", line 1969, in save
save_handler(self, fp, filename)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 761, in _save
ImageFile._save(im, fp, [("jpeg", (0, 0)+im.size, 0, rawmode)], bufsize)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\ImageFile.py", line 519, in _save
raise IOError("encoder error %d when writing image file" % s)
OSError: encoder error -2 when writing image file

How can I solve it? Maybe someone could help...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant