If I'm not completely wrong, the first variant saves image data in PNG format while the "write" version seems to use raw image data, hence the difference in size. PNG is compressed, the latter is uncompressed.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Best posts made by rs2000
-
RE: difference in file-size when using share_image_data(bytesObj) vs. write(bytesObj)