Closed
Bug 1150750
Opened 11 years ago
Closed 9 years ago
copy image includes extra margin
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: u314746, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150320202338
Steps to reproduce:
1) http://www.google.com/imgres?imgurl=http://www.knoxville-zoo.org/sites/www/Uploads/images/Exhibits/panda1_709041545401.png&imgrefurl=http://www.knoxville-zoo.org/animals_attractions/exhibits/red_panda_village.aspx&h=543&w=800&tbnid=kbMAGGYHVJKiPM:&zoom=1&docid=d-aSHEZ68b5TPM&ei=xdcdVc_sO-LdsATtkIDIDQ&tbm=isch&ved=0CDUQMygDMAM
2) right-click "copy image"
3) paste into email composed on thunderbird between two lines
Actual results:
The image was pasted into the mail but there was a large space between text. An html editor showed:
<img
src="http://www.knoxville-zoo.org/sites/www/Uploads/images/Exhibits/panda1_709041545401.png"
style="margin-top: 345px;" id="irc_mi" height="543" width="800"><br>
So it looks like a margin is getting included.
If on the source page you go to the actual image only (someURL/redPanda.jpg only in address bar by clicking on "view image" on original page) this image copy/pastes correctly.
This behavior is not new and has been present in FF for quite a while and is present on other images when doing a GIS.
Expected results:
Expected the image and only the image to be copy/pasted.
Do you know online HTML editor to test that online?
Flags: needinfo?(mh4)
On a windows 7 system, I used Kompozer 0.8b3 to paste the picture but have seen the odd behavior when pasting into multiple versions of Thunderbird.
Flags: needinfo?(mh4)
Comment 3•10 years ago
|
||
Hello Friend of the Penguin, I could see the issue even with the below latest released version of Firefox and Thunderbird client
Name Firefox
Version 43.0.1
Build ID 20151216175450
User Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
Thunderbird 38.4.0
I tested with a few permutation and combination of different scenarios. This issue could be reproduced with:
1. image copied through Firefox and pasted in gmail opened in Firefox (substantial margin was added)
2. image copied through Firefox and pasted in Thunderbird mail client (added margin was not that substantial)
Same issue can not be duplicated with:
1. image copied through Chrome and pasted in Thunderbird
2. image copied through Firefox and pasted in gmail opened in Chrome
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Images
Ever confirmed: true
Product: Firefox → Core
Comment 4•10 years ago
|
||
copy/paste code is really not layout... Sadly it's just generally kinda underowned.
Component: Layout: Images → DOM
Comment 5•10 years ago
|
||
Bug 555176 changed the 'Copy Image' command so that it copies both the HTML source and the image data as alternate formats.
The source of the image includes a large margin:
<img src="..." style="margin-top: 180px;" ...>
We generally have favoured copying and pasting the HTML content rather than the image data, so the margin comes along with it.
Comment 6•9 years ago
|
||
I can confirm when pasting into MS Paint that data:text/html,<img src="http://www.konicaminolta.com/kids/endangered_animals/library/field/img/g-panda_img01-l.jpg" style="margin-top: 345px;" id="irc_mi" height="543" width="800"> -> copy image -> paste just pastes the image and not the margin. Composing in Thunderbird and other HTML composition tools will include the margin as expected (see comment 5).
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
| Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•