Desktop Pet - Your GIF on your desktop. 364 KB. 0% CPU. No Electron.

byโ€ข
Desktop Pet: Your Favorite Character, Always On Top ๐Ÿพ Tired of heavy Electron apps eating 300MB of RAM just to show a GIF? Desktop Pet is a native Swift + AppKit alternative thatโ€™s incredibly light. Battery: Zero impact Stays on top of full-screen apps and all Spaces. Format Support: GIF, APNG, MP4 (Alpha), HEVC. Multi-Pet: Multiple characters with independent settings. One-Click Hide: Instantly clear your screen for sharing. https://github.com/bssm-oss/desk...

Add a comment

Replies

Best
Maker
๐Ÿ“Œ
Hey PH ๐Ÿ‘‹ GIF ํ•˜๋‚˜ ๋ณด์—ฌ์ฃผ๋Š” ์•ฑ์ด ์™œ 300MB๋ƒ๋Š” ์ƒ๊ฐ์—์„œ ์‹œ์ž‘ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋งŒ๋“ค๋ฉด์„œ ์žฌ๋ฐŒ์—ˆ๋˜ ๋ถ€๋ถ„์ด ์žˆ์–ด์„œ ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค. GIF์—๋Š” ๊ฐ ํ”„๋ ˆ์ž„๋งˆ๋‹ค "์ด ํ”„๋ ˆ์ž„์„ ๋ณด์—ฌ์ฃผ๊ณ  ๋‚˜์„œ ์บ”๋ฒ„์Šค๋ฅผ ์–ด๋–ป๊ฒŒ ์ฒ˜๋ฆฌํ• ์ง€"๋ฅผ ์ง€์ •ํ•˜๋Š” disposal method๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์ฒ˜์Œ์— ์ด๊ฑธ ์ง์ ‘ ๊ตฌํ˜„ํ•˜๋ ค๊ณ  `CGContext` ์บ”๋ฒ„์Šค๋ฅผ ๋งŒ๋“ค์–ด์„œ ํ”„๋ ˆ์ž„์„ ๋ˆ„์ ํ•ด ๊ทธ๋ ธ๋Š”๋ฐ, ํˆฌ๋ช… ๋ฐฐ๊ฒฝ GIF์—์„œ ์ž”์ƒ์ด ์ƒ๊ฒผ์Šต๋‹ˆ๋‹ค. ์•Œ๊ณ  ๋ณด๋‹ˆ `CGImageSourceCreateImageAtIndex`๊ฐ€ ์ด๋ฏธ disposal์„ ์ฒ˜๋ฆฌํ•ด์„œ ์™„์„ฑ๋œ ํ”„๋ ˆ์ž„์„ ์ค๋‹ˆ๋‹ค. ์ง์ ‘ ๋งŒ๋“  ์บ”๋ฒ„์Šค๊ฐ€ ์˜คํžˆ๋ ค ๋ฐฉํ•ด๋ฅผ ํ•˜๊ณ  ์žˆ์—ˆ๋˜ ๊ฒ๋‹ˆ๋‹ค. ์บ”๋ฒ„์Šค ์ฝ”๋“œ ์ „์ฒด๋ฅผ ์‚ญ์ œํ•˜๊ณ  ๋‚˜๋‹ˆ ์ž”์ƒ์ด ์‚ฌ๋ผ์กŒ์Šต๋‹ˆ๋‹ค. ์ฝ”๋“œ๊ฐ€ ๋งŽ์„์ˆ˜๋ก ์ข‹์€ ๊ฒŒ ์•„๋‹ˆ๋ผ๋Š” ๊ฑธ ๋‹ค์‹œ ํ•œ๋ฒˆ ๋А๊ผˆ์Šต๋‹ˆ๋‹ค. ์–ด๋–ค ๊ธฐ๋Šฅ์ด ์žˆ์œผ๋ฉด ์ข‹์„์ง€ ํ”ผ๋“œ๋ฐฑ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค!