QB64 Phoenix Edition
Coded Images - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Works in Progress (https://qb64phoenix.com/forum/forumdisplay.php?fid=9)
+---- Thread: Coded Images (/showthread.php?tid=2462)

Pages: 1 2


RE: Coded Images - Pete - 02-25-2024

Ask Steve to tell you about the tiny hairs he had to remove from his Cheerios as a kid. Darn bowl cuts.

Pete

- I tend to jest, rather than read anything.



RE: Coded Images - OldMoses - 02-27-2024

I tried it out, loading an image, encoding a string and then doing _SAVEIMAGE on it. Then reloading the saved version and decoding. It worked fine on a PNG, but I get a null string when trying it on a JPG. Haven't tried any others.

I like it as a crypto exercise.


RE: Coded Images - a740g - 02-27-2024

(02-27-2024, 02:47 AM)OldMoses Wrote: I tried it out, loading an image, encoding a string and then doing _SAVEIMAGE on it. Then reloading the saved version and decoding. It worked fine on a PNG, but I get a null string when trying it on a JPG. Haven't tried any others.

I like it as a crypto exercise.

JPEG images lack the alpha channel. BMP should work. TGAs alpha channel implementation is a bit weird, I think. So, not sure about that one.


RE: Coded Images - TerryRitchie - 02-27-2024

(02-27-2024, 02:47 AM)OldMoses Wrote: I tried it out, loading an image, encoding a string and then doing _SAVEIMAGE on it. Then reloading the saved version and decoding. It worked fine on a PNG, but I get a null string when trying it on a JPG. Haven't tried any others.

I like it as a crypto exercise.

You need to save using a non-lossy format.


RE: Coded Images - Pete - 02-28-2024

I'd have to dig up my code from the 90s. I sent Mac an image once, and he said it wouldn't load. I then sent him my qb utility I threw together, and asked him to run it and input the name of the image. It was a clown laughing an pointing at the user. Mac replied something to the effect. I have bad news to share with you about your program. It worked as advertised.

What's old is new again, but now in 128-bits.

Pete