LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-31-2014, 04:08 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Copy a pictures into bmp for MS Office, using xclip?


Hello,

From Iceweasel, I can copy the picture into clipboard and it works.
I can paste it into Office.

However I would like to run a bash script to do convert a png and store it for the xclip/x11 clipboard, this to paste it later into Office.


Code:
cat image.bmp | xclip -i
<--- not working

Any ideas?
 
Old 06-01-2014, 02:58 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
From Iceweasel
?
Quote:
What is Iceweasel? Iceweasel is a fork [from Firefox]
OK, I'm with you this far.
Quote:
Any ideas
1: You don't cat image files, that just pours a bunch of gibberish across the screen.
2: If you want to convert a bitmap to a ping, take a look at imagemagic -mogrify which I'm told (by Mr Googles) does a splendid job of doing just that.
3: If piping the output of something to xclip works then you're looking at...
Code:
#imagemagic -mogrify --somethinghere your.bmp -o | xclip
assuming piping an image works...

Last edited by dijetlo; 06-01-2014 at 04:19 AM.
 
Old 06-01-2014, 04:05 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Does it have to be "bash"?
"later"? after the clipboard has been overwritten?
I could have swore that parcellite had this behavior.

See http://www.cheshirekow.com/wordpress/?p=435 for python alternative/workaround.

Hope that helps.

Last edited by Habitual; 06-01-2014 at 04:07 AM.
 
Old 06-01-2014, 08:58 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by Xeratul View Post
Hello,

From Iceweasel, I can copy the picture into clipboard and it works.
I can paste it into Office.

However I would like to run a bash script to do convert a png and store it for the xclip/x11 clipboard, this to paste it later into Office.


Code:
cat image.bmp | xclip -i
<--- not working

Any ideas?
question, why are you running MS Office in Linux? just use OpenOffice.org or its fork LibreOffice, then you can click n drag the .png directly into OO without any fuss. also the newer versions of MS Office now can use .png files as of win7 their screen shots are now saved as .png not .jpg and MS Windows can read .pgn files without 3rd party applications being installed.
 
Old 06-01-2014, 11:20 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by lleb View Post
question, why are you running MS Office in Linux? just use OpenOffice.org or its fork LibreOffice, then you can click n drag the .png directly into OO without any fuss. also the newer versions of MS Office now can use .png files as of win7 their screen shots are now saved as .png not .jpg and MS Windows can read .pgn files without 3rd party applications being installed.
I have a very slow cpu.
So I have to use lightweight applications.

Abiword is okay, but wine ms office is fast and works well


Openoffice is bloated, slow, and awful on my pc.
MS rocks, really.
 
Old 06-01-2014, 05:20 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
i have never seen a case were OOo runs slower natively then wine MS Office and ive been using both since 2000, but what ever floats your boat.

again if you are using a modern enough version of MS Office (2012 or newer) you should be able to just click n drag the .png file directly into the document. no need to convert to .jpg.
 
Old 06-01-2014, 09:55 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
So I have to use lightweight applications.
? WHAT ?????????

MS office 2010 and 2012 take up about 35 GIG's of drive space
it is anything BUT LIGHTWEIGHT

the current FULL install of Libreoffice 4.2 takes up 623 meg

??? 623 meg VS 35 GIG !!!!
 
Old 06-01-2014, 09:57 PM   #8
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by lleb View Post
i have never seen a case were OOo runs slower natively then wine MS Office and ive been using both since 2000, but what ever floats your boat.
.
I was not talking about MS Office 2013 or recent ones.

All my respect, sorry but you are lying. OOo is not particularly lightweight. It is like telling me that Inkscape is lightweight, which is not true. Inkscape and OOo are both heavy and slow/bloated.

By the way, such dev of OOo is not coming from Linux. Before OOo was a closed source.
http://en.wikipedia.org/wiki/Staroffice
It should be rewriten one in C++ by Linux, and cross-platform with limited dependencies, offering a better compatibility with docx or doc (so does LibreOffice).

Best office applications are on Windows or Mac. Nothing to say about it. However they might be ressource demanding (new expensive pc?) which is the big/huge drawback.

From StarWriter...
http://upload.wikimedia.org/wikipedi...atives.svg.png


Sort to say, nothing is perfect. There are few drawbacks whatever platform for Office you choose.


btw, for very slow machines, Word is now free
http://download.microsoft.com/downlo...S/Wd55_ben.exe


Btw, today, the world (> 90% of users, worldwide) uses Microsoft Office. There is nothing wrong about using MS Products.MS Office remains the best of the best for Office for general purposes. DOC/DOCX are formats to use, which are important if you have co-workers.
http://office.microsoft.com/

Last edited by Xeratul; 06-01-2014 at 10:47 PM.
 
Old 06-02-2014, 09:25 PM   #9
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
wow such FUD and false accusations from Xeratul. sorry mate i made zero false statements unlike yourself. there are plenty of issues with running MS office, primarily the #1 fact that MS is the very first to break their own SoP for best practice security by mandating that the administrator be used to install and in many cases even access fully the functionality of MS Office.

2nd with every new release of MS Office they break backwards compatibility of their own "standards" for all file types generated via MS Office. try opening a .doc/.docx file created today in MS Office 2013 in MS Office 2008, good luck, it will not happen, but I can open a .odt file created in OOo v 4.x in OOo v 3.x with zero issues.

need i really continue? just because fools use a tool does not make it the best out there. so by your logic because MS Windows is the most used OS in the world for office desktops it is therefore the best OS in the world. im sorry by im crying foul on that claim and logic mate, you are flat out off your rocker.
 
Old 06-03-2014, 06:28 AM   #10
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by lleb View Post
wow such FUD and false accusations from Xeratul. sorry mate i made zero false statements unlike yourself. there are plenty of issues with running MS office, primarily the #1 fact that MS is the very first to break their own SoP for best practice security by mandating that the administrator be used to install and in many cases even access fully the functionality of MS Office.

2nd with every new release of MS Office they break backwards compatibility of their own "standards" for all file types generated via MS Office. try opening a .doc/.docx file created today in MS Office 2013 in MS Office 2008, good luck, it will not happen, but I can open a .odt file created in OOo v 4.x in OOo v 3.x with zero issues.

need i really continue? just because fools use a tool does not make it the best out there. so by your logic because MS Windows is the most used OS in the world for office desktops it is therefore the best OS in the world. im sorry by im crying foul on that claim and logic mate, you are flat out off your rocker.

Discussing about tastes or software preferences is without any end. It is like customizing a desktop (our C guru mentioned about it).

Many may think and believe that there is ONLY MS Office. The world is believing in MS products (which does not mean that they are perfect).
I am from the side of MS Office softwares. They run well and very fast (up to year 2003/2010). I may have doubts about the 365 as well.

Some other might prefer OOo or Libreoffice, and believe that there is nothing else than OOo.


Something in between? Maybe.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get Open Office to save Pictures not just link them Christof999 Linux - Software 8 03-22-2014 10:20 AM
LXer: xclip Does Copy-and-Paste on the Linux Command Line LXer Syndicated Linux News 0 07-03-2009 01:00 AM
LXer: xclip - Copy contents from command line to X clipboard in openSUSE LXer Syndicated Linux News 0 04-14-2009 02:11 PM
Can't copy pictures with openSuse 11.1 raysr SUSE / openSUSE 2 01-13-2009 11:10 PM
Why do pictures from SD card copy to disk funny?? glenn69 Linux - General 3 12-09-2007 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration