IS PNG REALLY NOT THERE? IS IT REALLY NOT?
Conversation
Notices
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 08:17:43 JST Foone🏳️⚧️ -
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 08:21:19 JST Foone🏳️⚧️ so apparently the PNG clipboard format registered by paint dot net changes the format registered on every version, for... reasons.
so every time I install a paint dot net upgrade, it breaks pastejpeg
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 08:54:42 JST Foone🏳️⚧️ the most annoying thing about working on software that interacts with the clipboard is that every time I run the program I have to make sure to re-copy the image from the image editor, since every time I change the code I end up copying some text, which of course my program can't turn into a JPEG
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:13:40 JST Foone🏳️⚧️ I've also realized I have a habit of deleting lines of code by doing shift-delete, instead of just delete.
The result is the same, the line goes away, but the shift means it ends up on the clipboard, removing my image. Whoops.
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:19:28 JST Foone🏳️⚧️ okay I wrote some code to convert a BITMAPV5 in RAM to a PNG.
The colors are wrong in that characteristic BGR-RGB fuckup, and it's upside down.
God damn it windows, storing bitmaps upside down is such a 1985-ass design
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:26:25 JST Foone🏳️⚧️ Yeah that looks right
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:27:29 JST Foone🏳️⚧️ ahh, ABGR would make too much sense, so it's BGRA
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:28:39 JST Foone🏳️⚧️ I am currently hardcoding BGRA.
The right thing to do would be to parse the pixel masks from the header, and figure out the layout from that.I'm not doing that, but I'm saying this so that when I update something and it breaks and I post a wrong-colored image, I can refer back to this post and laugh at my past self
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:31:45 JST Foone🏳️⚧️ okay test. This should be a ~1mb JPEG, not a 24mb PNG
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:31:45 JST Foone🏳️⚧️ FUCK
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:34:46 JST Foone🏳️⚧️ Test again.
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:37:04 JST Foone🏳️⚧️ okay that worked.
maybe I should have done this as a browser extension. so it could tell me when I try to paste a PNG
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 09:38:17 JST Foone🏳️⚧️ Pushed an update:
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Wednesday, 06-Mar-2024 10:57:28 JST Foone🏳️⚧️ @PJ_Evans yes, I also have done opengl
-
P J Evans has moved to mas.to (pj_evans@mastodon.social)'s status on Wednesday, 06-Mar-2024 10:57:29 JST P J Evans has moved to mas.to @foone
Reminds me of trying to draw a house in computer graphics, and it kept coming out backward and upside down.
-