hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.56k stars 439 forks source link

Image missing preview? #1283

Open orschiro opened 4 years ago

orschiro commented 4 years ago

Hi guys,

I am wondering why some images don't show a preview.

See below. Any insights?

Thanks!

image

hluk commented 4 years ago

Can you check the item formats (F4 shortcut)? Sometimes there is an HTML copied with images, but the default HTML rendering in CopyQ is simple so it may not work well in some cases.

orschiro commented 4 years ago

That's right, it's in HTML format.

<img src="blob:https://web.whatsapp.com/5e01e636-d909-4e52-a34c-223ed9e4e054"/>

In this case, I copied an image from WhatsApp Web using right mouse click on the image > copy image.

On Sun, 29 Dec 2019 at 08:35, Lukas Holecek notifications@github.com wrote:

Can you check the item formats (F4 shortcut)? Sometimes there is an HTML copied with images, but the default HTML rendering in CopyQ is simple so it may not work well in some cases.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/1283?email_source=notifications&email_token=AABJXQ3MAQSQJBVAZUWO2ATQ3BHN3A5CNFSM4J6LFED2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYZ2FQ#issuecomment-569482518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABJXQ5BESZAQIC2FALR52DQ3BHN3ANCNFSM4J6LFEDQ .

hluk commented 4 years ago

You can move the Image item plugin in front of Text plugin so the app preferably displays the image instead of HTML.

image

orschiro commented 4 years ago

Thanks but that's already the case for me.

image

ikcalB commented 4 years ago

@hluk Ran into the same issue today, with diffrent web browsers:

mime types are both:

what about trying to preview an image, if text/plain is an uri to an image? Tried to come up with a command for that, so far no luck.

hluk commented 4 years ago

@ikcalB That's a good idea. Can be done with a display command: https://github.com/hluk/copyq-commands/tree/master/Display#preview-image-files