Skip to content

saving image in linux fails #240

Answered by hx2A
phitaylr asked this question in Q&A
Feb 25, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hello, @phitaylr !

When you say multiprocessing, are you referring to Python's multiprocessing library? Can you explain more about what you are doing? I've never used that with py5 and I suspect there might be some hidden pitfalls. I do know that Python's multiprocessing library works very differently on Windows because Windows OS doesn't support forking like linux does. Is your julia() function using multiprocessing?

Also, you might have a typo in make_image(i). Did you mean to type img.save(f'vids/julia/{i:06d}.png')?

In any case, I think you'd get better performance in make_image(i) if you used PIL Images instead of py5's Py5Image objects. For example:

from PIL import Image

def make_i…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@phitaylr
Comment options

@hx2A
Comment options

hx2A Feb 25, 2023
Maintainer

@phitaylr
Comment options

@hx2A
Comment options

hx2A Feb 26, 2023
Maintainer

Answer selected by phitaylr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants