Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 10 Dec 2018, 07:18
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to Copy & Paste from mtPaint to Libreoffice? (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
Boo

Joined: 09 Sep 2018
Posts: 4

PostPosted: Sun 09 Sep 2018, 00:16    Post subject:  How to Copy & Paste from mtPaint to Libreoffice? (Solved)  

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
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11363
Location: S.C. USA

PostPosted: Sun 09 Sep 2018, 00:38    Post subject:  

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.

_________________
I have found, in trying to help people, that 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 Shocked
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 13146
Location: Gatineau (Qc), Canada

PostPosted: Sun 09 Sep 2018, 02:13    Post subject:  

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/Inserting,_Editing,_Saving_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.
Same-Canine-but-2-Formats.jpg
 Description   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.
 Filesize   219.18 KB
 Viewed   142 Time(s)

Same-Canine-but-2-Formats.jpg

diff-headers-odg-jpg.jpg
 Description   
 Filesize   122.37 KB
 Viewed   142 Time(s)

diff-headers-odg-jpg.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2706

PostPosted: Sun 09 Sep 2018, 04:08    Post subject:  

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.

_________________
( ͡° ͜ʖ ͡°) :wq

Last edited by rufwoof on Sun 09 Sep 2018, 07:19; edited 2 times in total
Back to top
View user's profile Send private message 
Boo

Joined: 09 Sep 2018
Posts: 4

PostPosted: Sun 09 Sep 2018, 04:47    Post subject:  

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
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4446
Location: King's Lynn, UK.

PostPosted: Sun 09 Sep 2018, 05:41    Post subject:  

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

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0564s ][ Queries: 13 (0.0140s) ][ GZIP on ]