Open Juhan280 opened 2 months ago
Is anyone working in this issue?
Browsers allows you to copy images but can you tell where do you paste these images
In the DMs mainly and other things that I can't think of from the top of my head.
Convert Bitmap to blob Get contentUri to blob use clipData.newUri
Convert Bitmap to blob Get contentUri to blob use clipData.newUri
Sorry, I don't quite understand this. Can you explain it a bit further or point me to somewhere i can read more?
@Grimler91 Cant you add support for clipboatdManger setNew Uri content provider from termux shared fails
Need to converr images to
content://media/external/images/media/171412
and then setUri on clipboard
Theres is app called com.slash.clipboard on play stotr that can copy images it had copy activity that can be trigger using intent but it cannot handle fails fot termux content provider
If using files app i select share image and intercept intent and get content://media/external/images/media/171412
then from termux am start -n content://media/external/images/media/171412
am start -n com.slash.clipboard/com.slash.clipboard.CopyActivity -a android.intent.action.SEND -t image/* --eu android.intent.extra.STREAM content://media/external/images/media/171412 It does work to copy image to clipbaord
But file provider from termux content://com.termux.sharedfiles/storage/emulated/0/DCIM/Camera/20241021_204401.jpgapp cannot handle these and fails
Convert Bitmap to blob Get contentUri to blob use clipData.newUri
Sorry, I don't quite understand this. Can you explain it a bit further or point me to somewhere i can read more?
That requires java code for modification in libtermux api file
Till Them best you can do is install termuxGUI plugin and its python dependencu
its utility called termux-gui-view image.jpg it opens images in floating popup that you can fullscreen and also it automatically closes after 3or5 seconds within that you screenshot and on samsing phones and many other screenshoting adds images to keybord clipboard
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.