![]() V3 switches the default writing mode to RGB, because it's more popular than RGBA. Yes this is expected since that call violates assumptions. OT: I'm surprised that imageio.v3.imwrite("test2.png", img) stores a broken image, but maybe that's expected. I will have a think if this can easily be integrated into the current v2 API, or if it will simply fix itself as we transition into v3. Indeed, I can get the desired image if I Awesome, then we have a fix. _meta)įile "C:\Users\Sebastian\AppData\Local\Programs\Python\Python38\lib\site-packages\PIL\Image.py", line 2240, in save save_handler( self, fp, filename)įile "C:\Users\Sebastian\AppData\Local\Programs\Python\Python38\lib\site-packages\PIL\PngImagePlugin.py", line 1312, in _save raise OSError( "cannot use transparency for this mode")Ĭonsidering that the PR branch does the right thing, the new (v3) pillow plugin should fix this. _append_data( self, im, meta)įile "C:\Users\Sebastian\Documents\Coding-Projects\imageio\imageio\plugins\pillow_legacy.py", line 379, in _append_data img. _append_data( im, total_meta)įile "C:\Users\Sebastian\Documents\Coding-Projects\imageio\imageio\plugins\pillow_legacy.py", line 457, in _append_data PillowFormat. append_data( image)įile "C:\Users\Sebastian\Documents\Coding-Projects\imageio\imageio\core \format.py", line 492, in append_data return self. write( im, ** kwargs)įile "C:\Users\Sebastian\Documents\Coding-Projects\imageio\imageio\core\imopen.py", line 303, in write writer. imread( "")įile "", line 1, in File "C:\Users\Sebastian\Documents\Coding-Projects\imageio\imageio\core \functions.py", line 195, in imwrite return file. OSError: cannot use transparency for this mode Raise OSError("cannot use transparency for this mode") Img.save(self._fp, format=_id, **self._meta)įile "/home/tom/temp/without_ssp/lib64/python3.9/site-packages/PIL/Image.py", line 2240, in saveįile "/home/tom/temp/without_ssp/lib64/python3.9/site-packages/PIL/PngImagePlugin.py", line 1312, in _save PillowFormat.Writer._append_data(self, im, meta)įile "/home/tom/temp/without_ssp/lib64/python3.9/site-packages/imageio/plugins/pillow_legacy.py", line 379, in _append_data ![]() File "/home/tom/temp/without_ssp/lib64/python3.9/site-packages/imageio/core/functions.py", line 195, in imwriteįile "/home/tom/temp/without_ssp/lib64/python3.9/site-packages/imageio/core/imopen.py", line 303, in writeįile "/home/tom/temp/without_ssp/lib64/python3.9/site-packages/imageio/core/format.py", line 492, in append_dataįile "/home/tom/temp/without_ssp/lib64/python3.9/site-packages/imageio/plugins/pillow_legacy.py", line 457, in _append_data ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |