Enable printer icon set up

未关闭
#1,342 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
c
领域
api, backend

调研方向

首先检查现有的 CUPS 处理逻辑,了解其与 printer-icons URI 以及 issue 中描述的 ippeveprinter 行为的关系。确定可配置图标、生成的默认图标或多种尺寸是否属于范围,然后验证所选行为是否正确向 Mopria 等客户端公布。

由索引模型根据 Issue 内容生成。

描述

Recently I discovered that there is a client out there, that actually does make use of printer-icons uri. Specifically I mean the Mopria Print Service for Android.

When running ippeveprinter with an option to set the icon file as below
ippeveprinter -v -i /home/pi/4700x.png "My Cool Printer"
viewing printer details in the Mopria app does display the configured icon:

Image

Describe the solution you'd like
What I would like is to have cups similarly allow user configuration of an icon file, and then share it with the client.

The minimum I can imagine would be exposing an icons folder, and then it would be up to the user to put a single relevant 128x128 <printer_name>.png file there, in line with what is currently advertised for a given shared printer by printer-icons (uri)

For a more expanded functionality, if it makes sense, maybe cups could also generate a default cups printer icon in there, whenever a printer is added, which could be then overwritten by the user. Or maybe instead generate on the fly a link to an existing icon like /usr/share/cups/doc-root/apple-touch-icon.png, if a user icon is not available.

If instead of a single icon a set of 48x48, 128x128, 512x512 icons was needed, then maybe just use -sm and -lg suffixes to icon file name, similarly to what ippeveprinter does:
printer-icons (1setOf uri) = https://raspberrypi2.local:8000/icon-sm.png,https://raspberrypi2.local:8000/icon.png,https://raspberrypi2.local:8000/icon-lg.png

Additional context
I realize of course that this is a niche functionality, both from the perspective of user expectations, and of availability of clients that actually make use of icons. So probably the lowest of low priorities. :) But if this change ever makes into some future release of cups, that would be great!

主要语言
C
星标
1.8k
派生
362
平均合并
19 小时 12 分钟
30 天内合并 PR
8

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenPrinting/cups 的其他 Issue

查看 OpenPrinting/cups 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。