hluk/CopyQ

Inconsistent Image Preview Sizes and Duplicated Entries for Screenshots

Open

#3,129 建立於 2025年8月16日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C++ (419 fork)batch import
Windowsbughelp wanted

倉庫指標

Star
 (7,372 star)
PR 合併指標
 (平均合併 17小時 35分鐘) (30 天內合併 13 個 PR)

描述

Describe the bug

  1. Large Previews for Copied Image Files: When copying an image file directly from the file explorer, the preview displayed in the main history window does not respect the "Maximum height" and "Maximum width" setting in the application's preferences. This results in overly large thumbnails that disrupt the history list layout.
  2. Duplicated Entries for Screenshots: When copying a screenshot from a tool (e.g., the built-in PrtScn or a third-party application like PixPin), CopyQ creates two separate, redundant entries in the history for the same operation. One entry is the original image data, while the other is a preview, leading to a cluttered and confusing history list.

To Reproduce

  1. Copy a large image file (e.g., a .png or .jpg) from your file manager.
  2. Open the CopyQ main window and observe the preview in the history list. It will likely exceed the specified maximum height.
  3. Use a screenshot tool to capture a portion of your screen.
  4. Open the CopyQ main window again and observe the history list. Two separate entries for the same screenshot will be visible.

Expected behavior I expect CopyQ to handle image previews consistently and efficiently:

  • Unified Preview Sizing: The preview for all images in the history list, regardless of whether they were copied from a file or a screenshot tool, should strictly adhere to the user-defined "Maximum height" setting.
  • Single Entry for Screenshots: For screenshots, the history should only show a single item. This item should retain the full, original image data for pasting, while displaying a small, correctly-sized preview in the history list for easy browsing. This would eliminate the redundant entries and declutter the history.

Screenshots

Version, OS and Environment

  • copyq-10.0.0.37
  • Windows 11
  • Windows installer

貢獻者指南