termux / termux/termux-api

Ability to copy image files to clipboard

Open
#705 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Feature description
termux-clipboard-set can copy text into clipboard. But if we pass an image file, nothing happens.

I would like to be able to copy image files into android clipboard.

Reference implementation

All the major browsers can copy image to clipboard.
Screenshot_20240903-012028_Brave

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the termux-clipboard-set entry point and trace how its input reaches Android's clipboard handling. Determine the image input and MIME-type behavior, then check the existing clipboard-related tests or test setup. Done means an image file passed to termux-clipboard-set is available as an image in the Android clipboard without breaking text copying.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
cli, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.