Debian Multimedia :: Save Image From Clipboard Into File Using Command Line?
Apr 28, 2011Can save an image from clipboard into file using command line?
may be image magic?
Can save an image from clipboard into file using command line?
may be image magic?
install imagemagick python, and pygtk.
Code:
sudo apt-get install imagemagick python pygtk
Now save the following script somewhere as imgclip.py. This is a simple python script which takes an image file and puts it in the gnome-clipboard.
Code:
#! /usr/bin/python
import pygtk
pygtk.require('2.0')
[code]...
How do I save it as a jpg somewhere on my puter using a script? I can wget, but it gets saved as a .evif, which is totally useless. I can right-click on the image in a browser and use the context menu to save it as a jpg, but I want this process automated. How can I DL this image and save it as a jpg? GIMP's CL options don't include the capacity to save/convert this image, though it's possible from teh GUI. ImageMagick won't read this dynamic URL. What do I do?
View 3 Replies View RelatedI wish to append a text at the start of every line and save it to another file without changing the original file.know the command
For example:
Orignal.txt
a.txt
[code]...
I can copy image in Gimp and paste it to OpenOffice document.
How to do it (copy or paste image) from command line?
Is there a vim command or sequence of commands that will append the current line into the clipboard? Given the example below:
4
5
3
1
2
Lets say I wanted to cut 3, 4, 5 (in that order) then paste them below 2 so that the numbers are in order?
My xfce4-screenshooter GUI has the option Copy to the Clipboard, but I could not find this option in its' cI'm trying to bind printscreen key with this. I know that in order for the option to work I need to have the application always running (in GUI thre is option Close the application after screenshot , again somenthing that I can not find in command line).
View 9 Replies View Relatedsimple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?
View 6 Replies View RelatedI use webcam with the streamer application. So, to record a video I have to put in terminal something like this:
Code:
streamer -q -c /dev/video0 -f rgb24 -r 24 -t 00:30:00 -o /home/shark/untitled.avi
I know I can use other applications but I have got problems with all except with this. This is really annoying because it is a delay job. So, I am wondering how can I make a script that the terminal will ask me to name the file or even better to ask where to put my file.
How to get info (length, etc.) about music files in command line? Nautilus can show it on the file's Properties > Audio tab.
View 2 Replies View RelatedI am trying to upload some pics on my Facebook account using Firefox. When I click on Facebook's file upload icon, Firefox bring up a 'File Upload' window. I noticed that smaller image file is previewed on the lower right hand corner, while bigger image file is not. Is there anyway I can change this behavior or maybe change what Firefox is using to browse my files?
View 2 Replies View RelatedEnv: Lenny LXDE
[Question]
By (first step) doing: pcmanfm --set-wallpaper /point-to-new-wallpaper, it change the configuration to the new wallpaper, then, my question is: What is the most correct way to "refresh the desktop screen" (by command line) so that the new wallpaper is then displayed.
And by (second step) doing: lxsession-logout, and choosing 'Logout', the new wallpaper is displayed after the new login. No problem here. Is there a (most correct) way to completely change the picture and activate it by command line (without user intervention)?
debian 8 64bit
gnome classical gui
user is dd
psswd is word
adm psswd is adword
unlock crypt psswd is crypto
This is how I start debian. I can choose between debian gnulinux and advanced options. I select debian.
Then 'please unlock crypt' shoIws. I enter 'crypto'.
Then debian gui login screen shows. I enter 'dd' and 'word'.
Debian 8 gnome classical starts.
Can I login to debian 8 gnome classical by entering 'dd' and 'word' in a command line?
I do not want to login by debian gui login screen. But by command line.
If I select advanced options. Then recovery mode, I can get a command line. If I can login there, then I do not know how to.
I am looking for a good RSS program that can run on the desktop command line style.
View 3 Replies View RelatedI would like to know what clipboard managers are out there that are able to run independently of any system tray, or what have you, such as gnome panel. Ideally ones providing full keyboard navigation, that is for calling up the program and selecting from it.
I have tried anamnesis, which can operate as a stand alone program and does appear to offer some keyboard navigation, and whilst it wasnt as attractive or discreet as programs like glipper, parcellite, clipman, etc, i was willing to go with it. However, keyboard navigation is really problematic (maybe to do with how i have set it up, though i doubt it as its installation is so basic), so i have had to abandon it for now.
Am i using it wrong? Anyone else managed to select from it with the keyboard? I think iv googled this to death, but perhaps someone knows of something all the same.
I ask as i am using Openbox and am considering ditching gnome panel, as it is slow loading at boot and wont fully hide (one pixel!). Aside from that a panel icon is unnecessary in my case, as i am more keyboard focused, and it also wastes space that could be better used for the graphical windows list, especially when your rocking a single panel.
Is there a command line utility to tell me about what's inside a video file? Say I have a .mpg file. I want to know about the video stream and the various audio streams, the codec used for the video stream, the bitrate of the video stream, and so on.
View 5 Replies View Relatedjust started with Linux and I'm trying to create new files for each line of my input file. So I have file with 637 lines of data:
2 4 6
2 8 5
3 0 5
etc
and want to create a new file from each line. With
cat name.txt | awk '{ line = $0
print line
}'
I nicely see all lines, but what rests is to save each line separately into new file. I tried While read line command in combination with output >> $.txt, but didn't work well..
How do you set up a command just to copy a file's full path name (%F) onto the clipboard?(I can't seem to get this without copying the contents of the file.)
View 2 Replies View RelatedI am implementing a strategy to organize my data among the several machines I work with and thought that getting some ISO images out of it could be a good idea because that way data would be 'read only' thus allowing for easier synchronization.
At first I thought of using the "dd" command to create the ISO out of a directory, but it fails code...
So, I have two questions:
Is the ISO 'format' capable of storing complex directory structures with long filenames (pretty much as any Linux filesystem does), or are there some inherent limitations?
Supposing the ISO format is not constrained, which command would allow me to create an ISO file out of a directory?
I am trying to use 'convert' in command prompt to convert image file format.I get the following error.
convert: UnableToOpenConfigureFile `delegates.xml' @ configure.c/GetConfigureOptions/589.
convert: NoDecodeDelegateForThisImageFormat `airplane.jpg' @ constitute.c/ReadImage/530.
convert: MissingAnImageFilename `airplane.ppm' @ convert.c/ConvertImageCommand/2838.
I do computer forensics here in Afghanistan and I am trying to keep a clean image of a dual bootable hard drive. Here is what I try to do...
1. Boot into UbuntuLiveCD
2. I run "sudo dd if=/dev/zero of=/dev/sda conv=sync,notrunc bs=64K" to wipe the drive with all zeros.
3. I then install Windows by creating a new partician about 50GB.
4. I then install Linux by creating a partician in ext4 mounting it at '/' in addition I create a swap partician.
5. Next configure everything just the way I want it. I install all the drivers and software I need for my windows partician and build out the remaining part of the disc as a "data drive."
6. Then I use "dd" again to try to image my "clean slate" of a system. Remember I am dual booting. I dd the /dev/sda and gzip it.
7. When I go to restore it, I boot from the live CD again and unzip ig and "dd" it back onto /dev/sda.
8. I run fdisk -l and I get:/dev/sda1 * 1 6375 5120000000 7 HPFS/NTFS/dev/sda2 6376 11724 42965842+ 83 Linux/dev/sda3 11725 12453 ...... 82 Linux swap / Solaris.This means to me that it can "understand the file system"
9. But then when I take out the Live boot CD and try to get my "clean slate" machine back, the system goes into Grub Rescue mode with a grub command line "grub rescue>"
10. I tried using the tutorial on Grub2, but...
a. It would not understand the command "linux"
b. When I try to do insmod, it says it doesn't recognize the file system.
I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:
$ (something) -l 154 stuff.py
150: def foo(bar):
151: """
[code]....
Using the Screenshot in CompizConfig Settings Manager, can I copy the clipped screenshot to the clipboard right away? When I used <Super>Button1 to clip the screenshot, the image gets saved on the desktop and not on the clipboard. I would like to save some time and keystrokes by automating the "copy to the clipboard" I am using Ubuntu 10.04
View 1 Replies View RelatedI have ubuntu 10.04.1 and a H.P.psc 1311 all-in-one printer scanner.Printer works ok but when trying to scan,with xsane,it goes through the scanning process and an image of the document comes up on the screen.
When I try to save this image to desktop or file/folder whatever I get the message; "Child Process Error. Failed to execute OCR command:GOCR:no such file or directory."
My .jar file needs and uses some files in the same directory it's in (everything, including the jar was unzipped into said directory). It runs perfectly when I do java -jar file.jar in the command line, but there's trouble when I double-click the file when running from the file system manager. I've tried a custom command under properties ie java -jar, but the problem is that the .jar file doesn't seem to be able to use any of the files in the same directory. When running, the jar can't find any of the files that it needs.
View 5 Replies View RelatedI need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.
Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?
I would like to convert a .ods file to a .csv file via command line on a server running ubuntu with no graphical interface.
xls2csv does a perfect job on xls files; is there something similar for ods files?
I'd like to have a Linux machine run what Windows users typically call a clipboard as a network service on my small LAN (about 10 machines). More specifically I am looking to have Linux run the clipboard service centrally in the LAN with both Windows and *nix machines able to connect to it as opposed to the peer-to-peer sync model that I am seeing in almost all of the applications I've discovered thus far.
View 2 Replies View RelatedI have used to knoppix to grab an image off a pc to my external hard drive.I then used the command dd if=/sdc1/backup.iso of sda2 bs=4096 conv=notrunc,noerror to another pc I was cloning.This process failed and the hard drive was not seen after that even using fstab.Is there any way I can verify if the iso image i grabbed is good.What command can i use to explore this iso image?
View 3 Replies View RelatedIs there a way/command to back up all data from a Red hat Linux 4 serve[Including user rpofiles, data, group info, encrypts] either to a Red hat Linux 5.4 machine or as an Image file or manageable resource?
View 1 Replies View Related