Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy .png or .webp image to clipboard should render a preview, not a file path. Also: .webp doesn't render. #2936

Closed
haakonstorm opened this issue Dec 20, 2024 · 1 comment
Labels
feature New feature request

Comments

@haakonstorm
Copy link

Is your feature request related to a problem? Please describe.

  • Say you have two images (a image1.png and image2.webp) saved to disk.
  • Select image1, and copy it to clipboard with ctrl+c. Repeat with image2.
  • These are rendered as two file paths in CopyQ:

image

Describe the solution you'd like

The expected result was to see these images as image previews, not their file paths, e.g. like this:

image

Alternatives, and .webp image previews not supported at all?

  • Also, I've tried right-clicking images on the web in Firefox, and selected "copy image".
    If this image is a .jpg or .png, the image (preview) is rendered correctly (second in list, the "sample" image).
  • If this image is a .webp image, it is not rendered at all, only a blank "document" type icon (first in list):

image

Example:

This is the content of the clipboard with a random .webp image copied from this news article:

image

  • It appears more than just the .webp image is copied on the clipboard, but all other programs accept the contents of the clipboard as an image when pasted with ctrl+v.

Additional context

  • Running latest Windows 11, with CopyQ installed via scoop install.
  • on an ASUS RoG Zephyrus M16 laptop (i9, 64gb).
  • Latest Firefox.
@haakonstorm haakonstorm added the feature New feature request label Dec 20, 2024
@hluk
Copy link
Owner

hluk commented Dec 23, 2024

Thanks for the detail description.

Unfortunately, it seems that a usable image data format is not provided by Firefox (or by Qt GUI framework).

See also: #2084

@hluk hluk closed this as completed Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants