Ubuntu :: Bash / Script To Convert Dynamically Generated Image To Jpg?
Jun 9, 2010
So, I have this awesome idea whereby I will, every few minutes, dynamically generate a nightside view of the earth.That's the Fourmilabs sat image. I want to set it as my wallpaper. I have already written the bash script to download it and drop it into my wallpaper directory, and I'm using kcron to update my wallpaper. Here's my problem. That URL yields an image, but I can't figure out how to convert that image to a usable file format. It's OTF generated, so unlike other sites that have a format like .../image.jpg, this URL isn't playing nice.
I am new to Linux and I am trying to convert image files to mpeg video I tried using this command images2mpg -o Vorticity.mpeg -i Vorticity-Magnitude0%d.jpeg I get an error as below bash: images2mpg: command not found
test=(1 2 3 4 5) for car in ${test[@]} do echo "Element : $car"
[code]....
if variable $car equals 1, new element is added "6" to an array. But i don't know why when i am printing all elements of this array (echo "Element : $car") this element ("6") is not mentioned, but if i make a command which check an amount of contained elements by array it will be 6 elements.
Is it possible to change the GNOME desktop background during some period of time by just a random phrase from the list on black screen? Will is seriously load the CPU and consume battery life?
i have recently learned how to make backups of my psp games but for some reason they won't play them in iso format only cso (not suprisingly since everyone encourages the use of this format) is there a program out there thats easy to use, can someone show me how to use it i downloaded and installed ciso but haven't figured out what makes it tick
SO I'm not talking about changing the file permissions, The only thing I could find on google was this [URL]Basically can you convert your bash script into a executable file, One that you can't open in text editor?
I am trying to find a way to get/read the C source code from a JFFS2 image file. All I have is the jffs2 file and nothing else. I was looking for some kind of converter or reader that would allow me to do this. I know very little about Linux. I need to give the source code to a developer to save time on a new version/redevelopment of the original application.
I have a bunch of disk images, made with ddrescue, on an EXT partition, and I want to reduce their size without losing data, while still being mountable. How can I fill the empty space in the image's filesystem with zeros, and then convert the file into a sparse file so this empty space is not actually stored on disk?
For example:
> du -s --si --apparent-size Jimage.image 120G Jimage.image > du -s --si Jimage.image 121G Jimage.image
This actually only has 50G of real data on it, though, so the second measurement should be much smaller.
This supposedly will fill empty space with zeros: cat /dev/zero > zero.file rm zero.file But if sparse files are handled transparently, it might actually create a sparse file without writing anything to the virtual disk, ironically preventing me from turning the virtual disk image into a sparse file itself. :) Does it? Note: For some reason, sudo dd if=/dev/zero of=./zero.file works when cat does not on a mounted disk image.
I have a number of uncompressed audio files recorded off of an analog (POTS) telephone line of fax transmissions. Is there a Linux utility or library I could use to convert these files into images of the fax they contain? I'm not looking to send/receive a fax via a modem, but just to "replay" the communications tones and parse out the fax message.I'm guessing this may not be possible due to duplex issues and not knowing which end of the conversation is sending what,but thought I'd ask to see if anyone knew of something.
I'm looking for a graphics editor which will convert/resize the aspect ratio of the anamorphic images I create in-camera to their appropriate size. I'm shooting my images on film and digital. My digital camera is a Sony H50 with native 4:3 format. I'm also shooting with a Hasselblad EL/M with the standard 6x6 format.
Using my 2x anamorphic head on either camera will produce the following results: Sony H50: 4:3 > 2.66:1 (8:3) Hasselblad EL/M: 6x6 > 12x6. We're easily talking about 48"x24" or 60"x30" prints here folks! So I need to know which programs in Linux will give me the results I'm looking for.
I'd like to write a bash script to convert all of the .mpg files in a directory to .avi files. The ffmpeg part of this produces the kind of file that I want, but rather than changing the name of the input and output files each time that I run the script, I'd like to automate it. I've tried this script, but I get an error "command not found".
#!/bin/bash cd /home/michael_s/golf_temp 1 for i in 'ls *.mpg' ; do /usr/bin/ffmpeg.exe -i /home/michael_s/golf_temp/"$i" -map 0:0 -map 0:1 -pass 1 -vcodec mpeg4 -vtag xvid -f avi -b 1100k -vol 384 -mbd rd -s 640x480 -aspect 4:3 -acodec libmp3lame -ac 2 -ab 128k /home/michael_s/golf_temp/"$i".avi
I have a bash script that inserts some text onto every image at a certain place within a directory.
Heres what I have (from a German friend who appears online once in a blue moon), this is the line that resizes to a maximum of 800 either width or height and puts in the text 'text goes here'.
Now, I would like to know how to place a PNG image (a watermark, so to speak) over all images within a directory in a certain place, so how would I go about modifying this line to place an image instead of the text?
I would like the ability to manipulate a jpg (bmp, gif and raw would be nice as well) while in BASH. To be more specific, I would like to either add a water mark or a little section as a footer on the bottom of an image.
I will be using this as part of a shell script to alter files in a directory on my webserver.
I've got my laptop working with my UNI's rather complex wifi setup.
I need to get access to my wpa_supplicant file so i can use it with my nook and a few other devices that i need to get wifi access.
Network manager, i know, does all the wpa stuff dynamically and through scripts, so is there any way that i can get network manager to generate my wpa_supplicant config?
I am facing a problem. I want to know how to add files to an already existing rpm. Not at the creation time of rpm. Because we have to add some files to it dynamically if any user purchases it from our webserver. I have searched everywhere but havent find any. Is it possible to do so?
This post isn't really asking for a tutorial, but rather asking for some ideas. I've come up with a few ideas, but they seem cumbersome and unnecessary, so I was wondering if someone with more experience than me could out. Also, my explanations suck, but I'll try to do my best. So say I have an executable called X. At some point during its execution, X loads and uses (using dlopen and dlsym) a library called Y. In Y, there a bunch of functions that call the function called, for example, void *special_malloc (size_t). These functions come from another linked library (linked during compilation) called Z. Problem is, special_malloc contains some static variables within its scope, and when those variables are reset midway through a program, an invalid free occurs (special_malloc uses garbage collection). Now, what I want to happen is that whenever lib Z calls special_malloc, it instead calls the special_malloc defined in the executable X, so that these static variables are retained. Keep in mind that I have control of the Z library, meaning I can edit the source to fit my needs.
I use the awesome todo.txt cli tool for my todo list. I want to find a way to display this on my desktop, and have it update every time I update the file. Is there an easy way to do this? Does conky do stuff like this?
I want to change parameters of a RED queue during the simulation but it seems that some parameters can be modified only before starting the simulation, not dynamically, while the simulation is in progress. For example the following subroutines works before $ns run command but it do not change the behavior of the queue during the simulation( I want to change maxthresh_ and thresh_ after $ns
run command): Code: proc setREDParameters { redQueue MINth MAXth PER_MaxP Wq } { $redQueue set thresh_ $MINth $redQueue set maxthresh_ $MAXth