libreddit icon indicating copy to clipboard operation
libreddit copied to clipboard

can't copy images directly from the feed in Chromium

Open laalsaas opened this issue 4 years ago • 1 comments

Describe the bug

When I'm right-clicking on an image in the libreddit UI with the chromium-based qutebrowser, I don't have the "Save Image/ Copy image/ Copy image URL" options. This is because chromium doesn't recognize the way libreddit currently represents images as html:

Libreddit


	<a href="/img/o7igrl4qkka81.jpg" class="post_media_image short" >
		<svg
			width="1536px" 
			height="2048px" 
			xmlns="http://www.w3.org/2000/svg">
				<image width="100%" height="100%" href="/img/o7igrl4qkka81.jpg"/>
				<desc>
					<img loading="lazy" alt="Post image" src="/img/o7igrl4qkka81.jpg"/>
				</desc>
		</svg>
	</a>

Reddit:

<img alt="Post image" class="_2_tDEnGMLxpM6uOa2kaDB3 ImageBox-image media-element _1XWObl-3b9tPy64oaG6fax" src="https://preview.redd.it/o7igrl4qkka81.jpg?width=640&amp;crop=smart&amp;auto=webp&amp;s=658b5c66052a0576bf3218ad5e619503cd4d4e59" style="max-height: 512px;">

See also (qutebrowser#6947](https://github.com/qutebrowser/qutebrowser/issues/6947)

To reproduce

Steps to reproduce the behavior:

  1. Go to 'libredd.it' with a Chromium-based browser
  2. Right-click on an image
  3. no "Copy Image" entry in the menu.

Expected behavior

The images should be represented in the more popular html tag, so all chromium-based-browser users can copy images directly from the Feed without having to click on each image to open it as a File.

laalsaas avatar Jan 09 '22 19:01 laalsaas

Hey, I just found this issue after writing #390. It seems to fix this problem (at least in Chromium 96).

Before: Screenshot from 2022-01-09 23-48-46

After: Screenshot from 2022-01-09 23-47-18

Hope this addresses your report!

mikupls avatar Jan 09 '22 22:01 mikupls