Path: ...!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Rich Newsgroups: sci.crypt Subject: Re: [file2png] Convert (encrypted) binary data to .png images and back Date: Mon, 30 Dec 2024 20:35:58 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: References: Injection-Date: Mon, 30 Dec 2024 21:35:58 +0100 (CET) Injection-Info: dont-email.me; posting-host="1830077b5b0fbda0c8b476fd9564eff1"; logging-data="1886400"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DJWtFk4bA2QLDUX/rkfRu" User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64)) Cancel-Lock: sha1:HPV+tzRYjGnjUfu9NgYK/ob0svs= Bytes: 1557 Stefan Claas 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.