Encode writes img to w in the given format ("png" / "jpeg"). JPEG is encoded at quality 85 — small enough for thumbnails, high enough that pixel-level lossy artifacts are rare on the kinds of content (screenshots, photos, diagrams) Pad sees most. Unknown formats wrap ErrUnsupportedFormat.
(img image.Image, format string, w io.Writer)
| 60 | // kinds of content (screenshots, photos, diagrams) Pad sees most. |
| 61 | // Unknown formats wrap ErrUnsupportedFormat. |
| 62 | Encode(img image.Image, format string, w io.Writer) error |
| 63 | |
| 64 | // Capabilities reports what this backend can do. The editor reads |
| 65 | // these flags via GET /api/v1/server/capabilities and gates |
no outgoing calls