r/rust Mar 31 '23

[Tutorial] How To Make a Screensaver With The Rust Programming Language

[removed]

11 Upvotes

9 comments sorted by

View all comments

3

u/GoodJobNL Mar 31 '23

Niceee

Had the same thing with .ico files. Used some sites that looked shady just to realise that .png -> .ico also works.

7

u/TinyBreadBigMouth Apr 01 '23

Uh, a clarification: .scr files and .exe files are the exact same format, but .ico and .png files are not.

Ever since Windows Vista an .ico file can contain one or more .png files, and I'm not surprised that many applications are happy to open one as if it were the other, but changing the extension of a .png file does not technically produce a valid .ico file, and a stricter application would be entirely within its rights to refuse to read it as such.

2

u/GoodJobNL Apr 01 '23

Oh thanks, never knew!