Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coded Images
#11
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.
Shoot first and shoot people who ask questions, later.
Reply
#12
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.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
Reply
#13
(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.
Reply
#14
(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.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply
#15
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
Reply




Users browsing this thread: 2 Guest(s)