Cannot paste bitmap to some software

Post questions on how to use or achieve an effect in Inkscape.
Cybernetic1
Posts: 2
Joined: Tue Apr 03, 2018 6:29 am

Cannot paste bitmap to some software

Postby Cybernetic1 » Tue Apr 03, 2018 7:48 am

I copy (Ctrl-C) a bitmap in Inkscape.

Try o paste (Ctrl-V) to Facebook or Skype messenger. It comes out as text, something like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   version="1.1"
   id="svg1599"
   width="429"
   height="234">
  <metadata
     id="metadata1605">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <defs
     id="defs1603" />
  <sodipodi:namedview
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1"
     objecttolerance="10"
     gridtolerance="10"
     guidetolerance="10"
     inkscape:pageopacity="0"
     inkscape:pageshadow="2"
     inkscape:window-width="640"
     inkscape:window-height="480"
     id="namedview1601" />
  <inkscape:clipboard
     style="font-variant-east_asian:normal;opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;stroke-width:3.77952756;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
     min="158.00001,-882.99994"
     max="587,-648.99995" />
  <image
     y="0"
     x="0"
     id="image1568"
     height="234"
     width="429"
     xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAa0AAADqCAYAAAARfBpXAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
" />
</svg>



But I can paste this into Gimp and it comes out as image, and when I copy it from Gimp I am able to paste it into Facebook or Skype as image. That seems a bit strange, doesn't it?

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06)
On Ubuntu 17.10

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Cannot paste bitmap to some software

Postby brynn » Tue Apr 03, 2018 8:25 am

That code you posted is SVG/XML code. How did you select the raster image? If you used Select All, then you would have copied the whole document - the SVG document.

It also might matter exactly where you pasted it. I don't have access to any FB or skype account, to be able to test. But if you pasted it into a text field, where normally you type text -- maybe it would paste the code? I don't know.

Can you make a video for us?

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Cannot paste bitmap to some software

Postby prkos » Tue Apr 03, 2018 1:21 pm

The image I see in your document is the "Linked image not found" image. You seemed to have linked to your image from Inkscape instead of embedding it.

I'm not sure how Inkscape handles copying image types to clipoard, but there are extensions for extracting imaged out of SVG. Try under Extensions > Images > Extract images...
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download


Return to “Help with using Inkscape”