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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-31-2014, 04:08 PM
|
#1
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,735
|
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?
|
|
|
06-01-2014, 02:58 AM
|
#2
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep: 
|
?
OK, I'm with you this far.
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.
|
|
|
06-01-2014, 04:05 AM
|
#3
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
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.
|
|
|
06-01-2014, 08:58 AM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
Quote:
Originally Posted by Xeratul
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.
|
|
|
06-01-2014, 11:20 AM
|
#5
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,735
Original Poster
|
Quote:
Originally Posted by lleb
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.
|
|
|
06-01-2014, 05:20 PM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
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.
|
|
|
06-01-2014, 09:55 PM
|
#7
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,680
|
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 !!!!
|
|
|
06-01-2014, 09:57 PM
|
#8
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,735
Original Poster
|
Quote:
Originally Posted by lleb
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.
|
|
|
06-02-2014, 09:25 PM
|
#9
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
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.
|
|
|
06-03-2014, 06:28 AM
|
#10
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,735
Original Poster
|
Quote:
Originally Posted by lleb
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.
|
|
|
All times are GMT -5. The time now is 07:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|