Skip to main content

Overview

Three picture commands, all in the Fun category:
  • !quote turns a message into a black and white quote picture.
  • !image <effect> applies an effect (invert, blur, rotate, deep fry…) to an image, an avatar or a link. Each effect also has its own shortcut, like !blur or !invert.
  • !color (also !hex) finds the main color of an image or an avatar.
They are prefix commands with a cooldown per member: 5 seconds for !quote and !image, 4 seconds for !color. Both you and Petto need the Attach Files permission in the channel; if one of you is missing it, Petto says which. When many pictures are being made at the same time across Petto, you may be asked to try again in a few seconds.

Quote

!quote also works as !q and !miq (“make it a quote”). What gets quoted, in this order:
  1. The message you reply to. Reply to a message and type !quote.
  2. A message link from this server. You and Petto must be able to read that channel; messages from other servers are refused.
  3. A message ID from the channel you are in.
  4. Text you write. Add a member at the start or at the end (!quote hello @member or !quote @member hello) to put the quote in their name; without one, the quote is yours.
The picture is 1200×630. The author’s avatar is on the left, in black and white, fading into the background, and the words are on the right in a large serif font, as big as they fit. Under the words come the author’s display name in the server and their @username, smaller and dimmer. A text too long for the picture ends in ”…”. Mentions are written as @name, #channel and @role, links are shortened to their site, Markdown marks are removed, and custom and normal emojis are drawn as images (an emoji that cannot be loaded within a few seconds is written as text). Options can go anywhere in the text and can be combined: !quote --light --bold.
shi replies to a message of chu with !quote and Petto answers with a black and white quote picture of chu's words, avatar and name

In Discord: !quote as a reply to a message.

shi writes a sentence and @chu after !quote, and Petto draws the quote with chu's avatar and name

In Discord: text with a member at the end: the quote is in their name.

kira quotes a message of chu by its ID with --light and Petto draws it on a white background

In Discord: the ID of a message of this channel, here with --light.

kira quotes her own text with --light and the picture has a white background

In Discord: --light: white background and dark text.

liam quotes @shi with --color --bold: shi's avatar in color and the words in bold

In Discord: --color keeps the avatar in color and --bold uses a heavier font.

nova types !quote alone and Petto explains the ways to use it and its options

In Discord: !quote alone, not as a reply, says how to use it.

Image effects

!image also works as !img. A shortcut takes the same amount and picture as the long form: !blur 20 @Someone is !image blur 20 @Someone. A short number first is the amount; a long number is read as a member ID, so !rotate 123456789012345678 turns that member’s avatar.
liam runs !image invert and Petto answers with liam's avatar with inverted colors

In Discord: the colors of your own avatar, inverted.

kira runs !grayscale @chu and Petto answers with chu's avatar in black and white

In Discord: a member's avatar in black and white.

chu runs !sepia @kira and Petto answers with kira's avatar in sepia

In Discord: an old photo look.

shi runs !image blur 20 on herself and Petto answers with the avatar blurred

In Discord: blur with an amount of 20.

liam runs !img pixelate 30 and Petto answers with liam's avatar in big squares

In Discord: pixels of 30.

kira runs !rotate 45 @chu and Petto answers with chu's avatar turned 45 degrees

In Discord: turned 45 degrees, with see-through corners.

chu runs !flip @shi and Petto answers with shi's avatar upside down

In Discord: upside down.

shi runs !mirror @kira and Petto answers with kira's avatar mirrored

In Discord: left to right.

liam runs !circle @Chillet and Petto answers with Chillet's avatar in a circle

In Discord: cropped into a circle.

kira runs !deepfry @chu and Petto answers with chu's avatar deep fried

In Discord: deep fried, as a JPEG.

chu runs !compress 3 @shi and Petto answers with a low quality JPEG of shi's avatar

In Discord: a JPEG of quality 3.

Which picture is used

Petto takes the first one it finds:
  1. A picture attached to your command.
  2. A picture, embed image or sticker of the message you reply to.
  3. An https:// link you type after the command.
  4. A member you name (mention, ID or name): their avatar, the server avatar when they have one.
  5. The avatar of the author of the message you reply to.
  6. Your own avatar.

Limits

  • PNG, JPEG, WebP and GIF pictures. A GIF uses its first frame, and the answer says so.
  • At most 8 MB, 8192 pixels on each side and 16 megapixels. Bigger pictures are refused before they are opened.
  • Links must be https://. Petto only downloads from public addresses, gives up after a few seconds and only accepts image files.
  • The answer is a PNG, except compress and deepfry, which are JPEG.
shi inverts a GIF from a link and Petto answers with the picture and a note that only the first frame was used

In Discord: a GIF uses its first frame, and the answer says so.

Main color of a picture

!color also works as !hex and !clr. With a hex code (like #ff91c2 or ff91c2) it shows that color with its RGB, HSL and decimal values, as before. With anything else it finds the main color of a picture: an attached or replied image, a link, a member’s avatar or, with nothing after it, your own avatar. The picture is chosen in the same order as for image effects, and Petto answers with the hex code and the RGB values, and a picture of the image on a background of its main color with the code written on it. !image hex, !dominant and !dominantcolor do the same.
chu runs !color #8399ff and Petto answers with a card in that color and its hex, RGB, HSL and decimal values

In Discord: !color with a hex code: the color with its RGB, HSL and decimal values.

kira runs !hex on chu and Petto answers with the hex code, the RGB values and the avatar on a background of its main color

In Discord: the main color of a member's avatar.