<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-quine-in-piet-a-gif-image-that-prints-itself-syryr9f26" -->

---
title: A quine in Piet — a GIF image that prints itself | daily.dev
description: In Piet, a program is an image. The 252x189 GIF on the left is the program, and running it prints that very GIF, byte for byte.

Code and generator:...
canonical: https://daily.dev/posts/a-quine-in-piet-a-gif-image-that-prints-itself-syryr9f26
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A quine in Piet — a GIF image that prints itself | daily.dev
og:description: In Piet, a program is an image. The 252x189 GIF on the left is the program, and running it prints that very GIF, byte for byte.

Code and generator:...
og:url: https://daily.dev/posts/a-quine-in-piet-a-gif-image-that-prints-itself-syryr9f26
og:image: https://api.daily.dev/og/posts/SyRyR9F26.png
og:image:alt: A quine in Piet — a GIF image that prints itself
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A quine in Piet — a GIF image that prints itself

**[Hacker News](https://daily.dev/sources/hn)** · 2 min read · 0 upvotes · 0 comments

## Summary

In Piet, a program is an image. The 252x189 GIF on the left is the program, and running it prints that very GIF, byte for byte.

Code and generator: https://github.com/mame/piet-quine
Write up: https://dev.to/mame/a-quine-in-piet-and-a-plug-for-the-esolang-design-contest-339o

0:00 Load the data
0:10 GIF header & palette
0:30 Draw the data part
1:40 Draw the code part
2:20 Trailer & halt

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=GwMtzhjCzyc>

---

[View this post on daily.dev](https://daily.dev/posts/a-quine-in-piet-a-gif-image-that-prints-itself-syryr9f26)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A quine in Piet — a GIF image that prints itself","url":"https://daily.dev/posts/a-quine-in-piet-a-gif-image-that-prints-itself-syryr9f26","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-quine-in-piet-a-gif-image-that-prints-itself-syryr9f26"},"datePublished":"2026-08-07T14:26:52.489Z","dateModified":"2026-08-07T18:27:37.317Z","description":"In Piet, a program is an image. The 252x189 GIF on the left is the program, and running it prints that very GIF, byte for byte.\n\nCode and generator:...","image":"https://i.ytimg.com/vi/GwMtzhjCzyc/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/GwMtzhjCzyc/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/a-quine-in-piet-a-gif-image-that-prints-itself-syryr9f26","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT2M","video":{"@type":"VideoObject","name":"A quine in Piet — a GIF image that prints itself","description":"In Piet, a program is an image. The 252x189 GIF on the left is the program, and running it prints that very GIF, byte for byte.\n\nCode and generator:...","thumbnailUrl":"https://i.ytimg.com/vi/GwMtzhjCzyc/sddefault.jpg","uploadDate":"2026-08-07T14:26:52.489Z","duration":"PT2M","url":"https://api.daily.dev/r/SyRyR9F26","embedUrl":"https://www.youtube.com/embed/GwMtzhjCzyc"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"A quine in Piet — a GIF image that prints itself"}]}
```

