Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

2.21: pasting gif issue

Open david-allison opened this issue 1 year ago • 9 comments

no longer works pasting gif. now everytime i do i only see png which has been pasted in the field.

-- App Review, Samsung Galaxy S24 Ultra

david-allison avatar Jul 14 '25 08:07 david-allison

At the moment, I assume they have just (unintentionally) set Paste clipboard image as PNG to enabled in Settings -> General.

In 2.20.1, a GIF file is pasted from the clipboard as it is (i.e. as GIF) even if Paste clipboard image as PNG has been enabled.

In 2.21.0, on the contrary, a GIF files is pasted as PNG from the clipboard if Paste clipboard image as PNG has been enabled. I can paste it as GIF if I set Paste clipboard image as PNG to disabled. It rather seems a more correct result compared to 2.20.1.

snowtimeglass avatar Jul 14 '25 09:07 snowtimeglass

I believe that the goal of the setting is compressing the image into a JPEG if disabled, and keeping the original if enabled, despite the name being Paste. .. as PNG

BrayanDSO avatar Aug 07 '25 23:08 BrayanDSO

When Paste clipboard image as PNG is disabled, GIFs are being converted to JPGs, which is unexpected behavior.

sanjaysargam avatar Oct 25 '25 05:10 sanjaysargam

I tried pasting a GIF in Google Keep, and it also converted to JPG. So, it’s likely an issue with certain Android versions or clipboard managers automatically converting formats.

sanjaysargam avatar Oct 25 '25 05:10 sanjaysargam

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Jan 23 '26 05:01 github-actions[bot]

@sanjaysargam I think the issues are with the apps. I tried coping an gif from my gallery (Samsung A54) it said "Unsupported file.", then I when to giphy and copied a gif. It worked and even in the clipboard preview it was a gif. Similarly I can past on whatsapp, telegram etc but not on notes. I think I can solve this as I do have prior experience in working with clipboards and gifs. I am working on this!

KT-1114 avatar Feb 20 '26 06:02 KT-1114

@KT-1114 Sure go ahead. Give a try

sanjaysargam avatar Feb 20 '26 14:02 sanjaysargam

@sanjaysargam Thank you for assigning the issue to me. This is the first ever issue assigned to me. I already tried with playDebug (default) variant it worked. Then I tried again with the released version making sure it was not my mistake in the previous attempt. It did fail, after trying with release variants, I found that it is working. Seems the issue is resolved in the current version of main. I am trying to find what exactly solved and write a test case.

Also, a little favor if you could, can you check with the alpha/beta version (I do not have them), it can narrow down my search.

KT-1114 avatar Feb 20 '26 14:02 KT-1114

typical clipboard copying/pasting issues. Not our fault.

BrayanDSO avatar Feb 20 '26 14:02 BrayanDSO