Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 96:23:59 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,426 |
Hi all,
here is a Python3 implementation of my file2png program, available
here: https://github.com/706f6c6c7578/file2png
Hope you find it useful, when for example uploading such images to
platforms like X, which does not compress .png images, as I have
tested!
Stefan Claas <pollux@tilde.club> wrote:
Hi all,
here is a Python3 implementation of my file2png program, available
here: https://github.com/706f6c6c7578/file2png
Hope you find it useful, when for example uploading such images to platforms like X, which does not compress .png images, as I have
tested!
PNG compression is lossless, so it should not matter if the PNG is compressed, you should get back the same bytes that went in.
Now, if instead you mean "rescale" (reduce/increase size) or other transformations (RGBI to RGB or RGB to indexed) then those
transformations may alter the content such that you do not get back
what you put in.
Rich wrote:
Stefan Claas <pollux@tilde.club> wrote:
Hi all,
here is a Python3 implementation of my file2png program, available
here: https://github.com/706f6c6c7578/file2png
Hope you find it useful, when for example uploading such images to
platforms like X, which does not compress .png images, as I have
tested!
PNG compression is lossless, so it should not matter if the PNG is
compressed, you should get back the same bytes that went in.
Now, if instead you mean "rescale" (reduce/increase size) or other
transformations (RGBI to RGB or RGB to indexed) then those
transformations may alter the content such that you do not get back
what you put in.
I remember taht facebook/Meta did something with .png in the past and
it did not work, but it was not rescaling etc.