Bug 165004 - Inserting multiple images via drag and drop in Calc result in one image with transparency
Summary: Inserting multiple images via drag and drop in Calc result in one image with ...
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: medium normal
Assignee: Amin Irgaliev
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Calc-Images
  Show dependency treegraph
 
Reported: 2025-02-03 09:48 UTC by Amin Irgaliev
Modified: 2026-01-07 09:47 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Bug reproducing (2.07 MB, video/mp4)
2025-02-03 19:16 UTC, Vladislav Tarakanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amin Irgaliev 2025-02-03 09:48:58 UTC
Description:
When inserting multiple images via Drag and Drop, a transparent image marked "Image 1..." is inserted. The descriptions of the object's mark says: "Image with transparency 'Image 1'"

Steps to Reproduce:
1. Open Calc
2. Open the File Explorer
3. Select more than one image
4. Drag them to Calc

Actual Results:
A transparent image marked "Image 1..." is inserted.

Expected Results:
Dragged images are inserted


Reproducible: Always


User Profile Reset: No

Additional Info:
Reproduced on :

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 89c27a63a70f46ad290fc8cd34a08fae8fe94c8a
CPU threads: 12; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 m_a_riosv 2025-02-03 18:35:12 UTC
Works for me, copying from Edge
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 08e40accb3fabe676746c40797efc20eaa218801
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Please detail step by step, how you make the copy and which browser you use.
Comment 2 Vladislav Tarakanov 2025-02-03 19:16:42 UTC
Created attachment 198947 [details]
Bug reproducing

The bug does not affect web browsers. The problem occurs when copying multiple images from a file explorer (Dolphin in Linux/KDE, Windows Explorer, etc.). Also, to reproduce the bug, it is enough to drag multiple images directly from the desktop.

To clarify, the error only occurs if multiple files are selected. Dragging a single image works as expected. Also, the problem affects images (png, jpeg, etc.), but does not reproduce with video files. The videos simply overlap each other.
Comment 3 m_a_riosv 2025-02-03 23:17:05 UTC
Reproducible
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 08e40accb3fabe676746c40797efc20eaa218801
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 4 BogdanB 2025-08-26 12:25:22 UTC
Also in
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0c5feb0d53badd3bf5f9c88d3de3ee08f8fab430
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 5 Amin Irgaliev 2025-12-22 11:04:27 UTC
A patch has been submitted to remove the image replacement functionality in Calc: https://gerrit.libreoffice.org/c/core/+/196085.

We need feedback on the acceptability of this change. Currently, this functionality also hinders the implementation of multiple image insertion (https://bugs.documentfoundation.org/show_bug.cgi?id=41007).

We have not been able to come up with any scenario that requires replacing an image in a spreadsheet without deleting the existing one. Perhaps we should abandon this behavior in favor of multiple image insertion?
Comment 6 Heiko Tietze 2025-12-22 14:11:15 UTC
(In reply to Amin Irgaliev from comment #5)
> We need feedback on the acceptability of this change.

If you still can drop multiple images into a spreadsheet, just not replacing the current selection, I think this is a reasonable solution. For consistency drag'n drop should neither replace in case of single selection.
Comment 7 Heiko Tietze 2026-01-07 09:47:09 UTC
(In reply to Amin Irgaliev from comment #5)
> A patch has been submitted to remove the image replacement functionality..
"This change removes the image replacement functionality, which is triggered when a new image is dropped onto an existing one.", meaning before the dropped image/s are accepted any selection would be cleared. Potential workflows where ImgA is replaced by ImgB per drag 'n drop wont be possible anymore.

Me suggested to test, if possible, if the source contains multiple images. But if that's not possible or means substantial effort I believe the improvements of this patch outweighs the rare potential use case.