Author Topic: Drag and drop images from Firefox always converts them to BMP  (Read 140 times)

Bone Reader

  • Newbie
  • *
  • Posts: 10
    • View Profile
When images are dragged from a web page in Firefox and dropped into a folder in Multi Commander, they are always converted to BMP They should keep their original format, like JPG or PNG.

When dropping the images into a folder in Windows Explorer, they do keep their original format without any conversion. Therefore the necessary information must exist.
Copying an image in Firefox and pasting it into an MC folder is also correctly handled. It's only with drag and drop, that the unwanted conversion occurs.

Mathias, did you ever consider making the whole project Open Source, so that others could help fixing all these little nuisances?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4451
    • View Profile
    • Multi Commander
I don't have FF, so don't know what the drop data they send. MC just save the data that it receives. Often it is files.

with clipspy ( https://www.softpedia.com/get/Office-tools/Clipboard/ClipSpy.shtml )
You can see what data FF is sending with d&d. and I can say if MC support that or not.

OpenSource. No MC is not a good project for that. it is too big. And no outsider would ever take the time to understand the codebase. it is massive.
And there is also a security concern. Having anybody be able to release a version of MC, a program that lots of people run as admin. It not good.

Bone Reader

  • Newbie
  • *
  • Posts: 10
    • View Profile
ClipSpy shows the following clipboard formats:
So the clipboard contains URLs that point to the original image, binary bitmap data of the image and a path to a temporary *.bmp file for the image.

I guess one can not blame MC to take the available bitmap data instead of getting the original files from the URL (as Windows Explorer seems to do).
Therefore I withdraw my complaint. Thanks for pointing me to the ClipSpy app though.

Fun fact: Dragging and dropping an image from Edge to MC works as I would have expected. Why? Because Edge only delivers CF_TEXT and CF_UNICODETEXT in the clipboard and no bitmap data. Like with Firefox, both formats contain the image URL.

About making MC Open Source: I understand your concerns and of course respect your decision.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4451
    • View Profile
    • Multi Commander
Ok so FF so send both BITMAT and a FILE (HDROP)
MC take HDROP first if exists

Too take the picture is has to download it again. But that might be possible. I will check and see how other drop also work so it does not break something else

For Edge/Chrome it picks up the "FileContents" (file content) (Together with FilegroupDescriptorW  for filename) that is the actual file already, That MC saves.
« Last Edit: Yesterday at 21:24:03 by Mathias (Author) »