How to Copy & Paste from mtPaint to Libreoffice? (Solved)

Booting, installing, newbie
Post Reply
Message
Author
Boo
Posts: 4
Joined: Sun 09 Sep 2018, 04:10

How to Copy & Paste from mtPaint to Libreoffice? (Solved)

#1 Post by Boo »

Hello,

I use the picture editor included in Puppy Linux, mtpaint 3.49.12, to take some screenshot and isolate parts of the pictures that interest me for articles or presentations, but I can't just copy the part of the picture from mtPaint and paste it in LibreOffice. It is like it does not go to a system clipboard.

Any solution to this ?

Thanks

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

I assume you are cropping the picture to make it what you want.
Are you saving the changes and saving it in a format that LibreOffice can use?
After this, it is an image file that you can copy and past.
Any changes made in MtPaint have to be saved, so the image is now an image with those changes.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#3 Post by musher0 »

Hello, Boo.

I tried to reproduce your situation, and it would seem that the image buffers
that mtpaint and OpenOffice/LibreOffice Draw use are not compatible.
(Image buffers do not behave like text buffers in Linux.)

But it's no big deal, as bigpup mentioned:

-- make your edit and / or isolate your cutout with Ctrl-Shift-X in mtpaint

-- save this cutout or edit as a jpg file -=>> (under a different file name,
this is important; or you'll lose your original)


-- open your LibreOffice Draw

-- open your edited jpg picture or cutout in LO Draw

and there you go !

IHTH.

~~~~~~~~~~
P.S. The nice little tutorial here may explain a thing or two:
https://help.libreoffice.org/Common/Ins ... ng_Bitmaps

I think one reason for the complication that you are experiencing, Boo, is that
Draw is using its own format (odg) to open and save its pictures. E.g., you
can't save a picture directly as jpg in LO Draw, you have to export it as jpg.

Hopefully you can see the difference in the headers of the odg and jpg
picture formats in the attached.
Attachments
Same-Canine-but-2-Formats.jpg
These pics are apparently the same, but the one to the left is in jpg format;
and the one to the right is in odg format.
(219.18 KiB) Downloaded 180 times
diff-headers-odg-jpg.jpg
(122.37 KiB) Downloaded 177 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#4 Post by rufwoof »

Select the region in mtpaint, copy, and then in mtpaint menu options use EDIT, EXPORT CLIPBOARD TO SYSTEM ...and then Paste in Libre

Linux clipboards are different to others such as windows, there are for instance typically two clipboards, a X clipboard where you typically highlight some text and that alone adds it to the clipboard, and you paste that by middle mouse clicking (often middle mouse is pressing the scrollwheel downwards until it clicks). In addition to that many Window Managers also maintain their own clipboard. There can be tools installed such as gclipper that can help combine those two clipboards apparently into a single etc.

More usually what I do is crop or scale a image in mtpaint and then save that as a file ... and then use the insert image in Libre to insert that saved file.
Last edited by rufwoof on Sun 09 Sep 2018, 11:19, edited 2 times in total.
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

Boo
Posts: 4
Joined: Sun 09 Sep 2018, 04:10

#5 Post by Boo »

Thanks for the different replies I received very quickly.

It happens that the trick of selecting "export clipboard to system" was what I was looking for. So far I was saving the picture as also suggested, but going through the clipboard will definitely help me gain time.

Thanks again to the community

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#6 Post by Mike Walsh »

Yep; have to agree wi' all the above.

Part of the problem, as musher0 pointed out, is that of L.O. using 'proprietary' formats (not quite such a hassle in L.O.Writer, but awkward as hell in Draw). GIMP, unfortunately, is even worse in this respect. If you simply click on 'Save' when finished, it insists on saving the file in its own, GIMP-specific .xcf format. If you wish to simply re-save in the same location, after modifying something, you have to remember to either 'Export as:-, or else 'Overwrite...' It won't do what you want, otherwise.....though, to be fair, that's more of a program-specific case, and to do with learning the 'quirks' of a given piece of software.

It's always easiest to create the image you want to use and save as a separate file first. Then you can 'import' it into another program and do what you like with it. Having performed the first step, it's then a piece of 'finalised' data in its own right.

It's an old trick I learnt many, many years ago.....and has served me faithfully over time. Slightly more time-consuming, perhaps, but it never fails!


Mike. :wink:

Post Reply