Questions tagged [conversion]

Conversion between file formats.

Filter by
Sorted by
Tagged with
1
vote
0answers
136 views

How to convert files from mbox format to PST?

I'm using readpst to convert a PST file from Outlook into text files which can be parsed in Linux. I want to select a subset of these messages, and make a new PST out of them so that they can be read ...
0
votes
0answers
87 views

How do I convert AAC to FLAC and downsize s32le to s16le while keeping media tags?

I'm struggling with this and cannot figure out how to do that: I have a couple of audio files, *.m4a encoded with AAC, 32 bits per sample, which I'd like to convert to FLAC, 16 bits per sample, ...
0
votes
1answer
42 views

Replace a certain color of pixels in a png with another png image

I have a png (items.png) which consists of mostly black pixels. I want to replace all the black pixels with another image. (background.png) The images are not the same size, items.png is smaller ...
1
vote
1answer
240 views

How to convert prc to pdf in Ubuntu cli?

Is there any CLI tool, that can convert a (Mobipocket eBook) PRC file to a PDF? I Googled on it but all I found was about converting doc(x)/HTML/series of images to pdf.
2
votes
1answer
5k views

How to convert an image to a 24-bit BMP in commandline?

I'm writing a wrapper Bash script for ARSS to make it easier to use. The program converts images to sounds and vice-versa but it only accepts 24-bit BMP images, which I was only able to produce using ...
0
votes
3answers
577 views

How to encode/decode JPG file to int sequence?

I want to convert my JPG files to int sequences and then reconvert to get the images again. My script.sh is like this: FILE=$(cat $2) TOTAL=$(echo ${#FILE} - 1 | bc); for j in $(seq 0 $TOTAL) do ...
8
votes
3answers
4k views

Markdown to PDF conversion in Pandoc: making pages landscape?

I am converting a document from Pandoc markdown to .pdf. I run the conversion like this, and everything works fine: pandoc test.MD -f markdown -o test.pdf However, I would like pandoc to output my ...
1
vote
2answers
487 views

Bash script to convert the 2nd column in csv file from Unix time to readable date / time

My input file is a comma separated .csv. I'd like to convert the 2nd columns from unix time to a readable date time format like this... before 1502280000 after 8/10/17 08:00:00 I'd also like to ...
0
votes
1answer
175 views

Automatic conversion of Inkscape <=0.91 files to the new 0.92 CSS format

Inkscape 0.92 asks the user if old files should be converted to match the new resolution. I aligned all old pictures in units of millimetre. How can I convert all old files with a script? Is there an ...
2
votes
2answers
91 views

How to find + convert on these .gif?

I want find a list of .gif files, convert them all to series of png images with filename identifiers and loop those series in this LaTeX. I am thining here how to combine the find + convert. I can ...
0
votes
1answer
696 views

How to convert .bin-files to .iso-files fast?

I try to convert a .bin CD image file (with no .cue-file) of less than 800 MB with iat (Iso9660 Analyzer Tool v0.1.7) to an .iso-file on FreeBSD. With an AMD FX-8370 after 30 minutes iat still has not ...
4
votes
1answer
2k views

How to convert a JSON's file tree structure into a single line?

I have a JSON file as below { "Foo": "ABC", "Bar": "20090101100000", "Quux": { "QuuxId": 1234, "QuuxName": "Sam" } } I want to convert it to the below {"Foo":"ABC",...
1
vote
1answer
252 views

Feeding unicode to unrtf

I'm trying to convert some files that contain utf-8 characters from rtf to text but i can't get unrtf to not just remove them: ➜ ~ file test test: UTF-8 Unicode text ➜ ~ cat test eeeééééèèèèfff ➜ ~...
1
vote
0answers
56 views

Convert multiple group of PNG files to multilayered ICO files

Let say I've many files named e.g.: FirstIcon_16.png FirstIcon_32.png FirstIcon_colored_16.png FirstIcon_colored_32.png SecondIcon_16.png SecondIcon_32.png SecondIcon_colored_16.png ...
-2
votes
1answer
111 views

text file reformat to text file

How to convert log file below to the output file in the bottom using awk in shell scripts. input file format as below: zzz ***Fri 27 March 2017 01:21:00 EST Device: C1 C2 C3 R1 1 2 3 R2 4 ...
1
vote
1answer
192 views

tiff2pdf is auto-rotating my image

I am using: tiff2pdf -ox.pdf x.tif to generate a PDF from a TIFF. Why does the PDF show up as rotated 90 degrees left? I am using tiff2pdf version 3.9.5 on Solaris. I don't see any options to ...
3
votes
1answer
1k views

How do I convert a troff manpage with UTF-8 characters (czech to be precise) to PDF

I have a troff document (manpage) with UTF-8 characters and I am trying to convert it to a PDF. However, when using the -Tpdf option, the PDF generated does not show the correct characters. This is ...
4
votes
1answer
2k views

Convert in command line an sfd file (fontforge) to ttf, otf, woff, svg

I search a way to automatically convert an sfd file (The work format of Fontforge) to the main font format (at least otf, ttf, woof, svg). But I need to do it in command line, I don’t need to do it ...
2
votes
1answer
1k views

Password-protect a LibreOffice or OpenOffice ODT file from Bash

From a Bash terminal in a popular GNU/Linux distro, how can a non-password-protected [OpenDocument Text (.odt)](OpenDocument Text) document be transformed into a password-protected one? Unfortunately,...
0
votes
2answers
299 views

Time conversion in UNIX/LINUX

I need to convert a unix timestamp (number of seconds since 2000) into a standard human-readable format. I found that the command date -d @392603388.257982 works like a charm but the default start ...
1
vote
0answers
566 views

Converting FLAC with images into OGG with ffmpeg/libvorbis creates corrupt files

I have a script that extracts a specified subset of my music collection. Most of my music is FLAC; since space (and supported formats) may be an issue on the target device (smartphon, car radio, ...) ...
0
votes
2answers
555 views

how to convert audio (.3gpp) file to video file?

I've a pure audio file having extension of .3gpp. How to convert it into a video file? As it doesn't contain any video, so a blank screen would suffice. I'm working on Ubuntu 16.04. Also I'm ...
0
votes
1answer
792 views

Unique Deliminator when semicolon replaced with comma in CSV files of Unix environments?

Azure Machine Learning insists me to use comma as deliminator in CSV files, instead of semicolon. This breaks a lot of things in *ix computers where we use semicolon and cell values have a lot of ...
4
votes
1answer
4k views

Is there a csh to bash script translator?

Programming in C shell is considered harmful by some people, but csh scripts are continued to be written by some hardcore csh fans. Is there a free/open source converter to translate csh script into ...
-1
votes
1answer
4k views

Convert character encoding to UTF-8 in a .csv file

When I export my LinkedIn connections from: https://www.linkedin.com/connected/manage_sources I get a Microsoft Outlook CSV file back. But when I try to CSV.read the file using Ruby I get the ...
1
vote
0answers
115 views

Encoder to msrle format with FFMPEG

I need to create some files for an old windows API, for a video playback. The native windows files which works with this old API have the format of MSRLE. They are used as small animations during copy,...
1
vote
0answers
141 views

crop and convert to pdf adds unwanted margin

I have a few PNG files that I want to print in a certain scale. For that I want to convert each of them to (DIN-A4 sized) PDF and crop into multiple pages. So far I've used this command: convert -...
1
vote
2answers
396 views

`convert`ing *.gif to file.pdf hangs/freezes the system

I've 415 gif files in a directory and trying to make a single pdf of them by using the following command: convert /path/to/*.gif file.pdf But it cause for hanging/freezing of the entire system. In ...
1
vote
1answer
135 views

Problems converting WAV to ALAC by a batch job

I use the following code to convert WAV to ALAC (bash, macOS 10.12.1): find . -type f -iname "*.wav" | while read fn; do ffmpeg -i "$fn" -acodec alac "${fn%.wav}.m4a"; done But there seems to be a ...
1
vote
1answer
174 views

How to read XML input in lstopo

I have an XML output file from the lstopo command and I wanted to build a PNG file for it. Can I do this using the command line? Something like: lstopo -i out.xml -o abc.png Is something like this ...
3
votes
0answers
477 views

Convert NEF to JPG with optimal brightness

There are multiple tools for converting Nikon raw images (.NEF) to JPEG, as well as there are multiple discussions on this topic (e.g. Converting .NEF to .JPG). My question regards optimal settings ...
1
vote
1answer
423 views

Run GraphicsMagick / ImageMagick on Ubuntu, targeted for Windows

I'm trying to perform a .emf to .png conversion on a Ubuntu 16.04 server. Unfortunately .emf is a proprietary Windows format and so will not work natively. I'm therefore trying to build ...
1
vote
3answers
142 views

Force leading zeros in echo of base conversion

i'm trying to obtain a sequence in ternary values organised like that : 0 0 0 0 1 0 0 0 0 2 0 0 0 1 0 0 0 0 1 1 ......... ......... 2 2 2 2 2 for that i use : for i in `seq ...
7
votes
1answer
358 views

converting pdf pictures to png files makes pictures too small

I'm converting a bunch of pdf vector figures to png files. for f in *.pdf do convert -trim ${f} "${f}.png" done rename 's/\.pdf//' *.png But the dimension of the pictures are too small. The doc ...
2
votes
1answer
2k views

DAV to AVI conversion failed

I want to convert DAV format video clips from CCTV recorders to AVI using command as below (convert test - 1.dav to test - 1.avi) ffmpeg -y -i test\ -\ 1.dav -vcodec copy -movflags +faststart test\ -\...
5
votes
4answers
3k views

How to convert all files from gzip to xz on the fly (and recursively)?

I have a directory tree with gzipped files like this: basedir/a/file.dat.gz basedir/b/file.dat.gz basedir/c/file.dat.gz etc. How can I convert all of these from gzip to xz with a single command and ...
2
votes
0answers
321 views

How to convert .txt or .html files to multipages .DOCX file? [closed]

Using many tools like pandoc, we can convert a text or HTML file to DOCX file. But there is a problem, the output files must be multi-page. There must be something in the input file that indicates ...
1
vote
1answer
34 views

Using convert to create JPGs?

When I use convert image.png image.jpg to convert a PNG to a JPEG, does convert perform any lossy compression? How much?
4
votes
1answer
410 views

TROFF to pdf or docx conversion?

I have my partially complete PhD thesis in TROFF format (?) - so it would laser print from the unix station back then. It has had a layer of Atari 1stWord encapsulation, which may still be at the ...
3
votes
3answers
593 views

Convert text to fit the page (from commandline)

How to scale short texts (from one word, up to couple of short lines) to fit the page (nice to have choice if centred or aligned to left etc) ? (from commandline) Command: echo Audio | lpr -P ...
0
votes
1answer
716 views

“Print” text file to images with layout from command line

I have long journal files that I would like to view as images. I don't want to have to screencap my text editor. I am using LibreOffice to Export them to jpg, but I have to do everything ONE. STEP. AT....
2
votes
0answers
346 views

convert attachments of type winmail.dat (TNEF) to “real” attachments in stored email messages, recursively in MailDir

Some email messages contain the attachments in a format called TNEF (Transport_Neutral_Encapsulation_Format). This attachment is usually called winmail.dat. Extraction tools exist for linux, but ...
6
votes
1answer
641 views

ANSI code translator

Is there any tool that translates text with ANSI code to text-like output? tput cap names or the like? Reason for the inquiry is that I would like to use script or the like and view the resulting ...
16
votes
5answers
3k views

How can I convert Persian numerals in UTF-8 to European numerals in ASCII?

In Persian numerals, ۰۱۲۳۴۵۶۷۸۹ is equivalent to 0123456789 in European digits. How can I convert Persian number ( in UTF-8 ) to ASCII? For example, I want ۲۱ to become 21.
1
vote
1answer
1k views

Convert non-raid disk with data into RAID 1 disk (hardware controller)

I moved away from software RAID due to all the hassle it brings. After OS reinstall, I am left with only one drive. I ordered a hardware RAID controller today, and when the controller arrives, I'd ...
2
votes
1answer
2k views

Creating a GIF animation from PNG files while constraining GIF size

Is there a way, perhaps with ffmpeg or convert, to constrain the size of a GIF created by stitching PNG files? This answer (Creating a GIF animation from PNG files) does not address this, and ...
1
vote
0answers
367 views

Converting .odm to .odt or .pdf - command line

I saw this question: Converting .odm to .odt, where someone shows to convert an .odm file into .odt or .pdf. Is there also a way to do this in a command line? I have an Open Document Master file, ...
1
vote
1answer
709 views

SFK to convert text to sound with minimodem?

I've installed minimodem on a server running Ubuntu. I've read through the documentation but still having trouble. I want to input a text file and use frequency shift keying to output an audio file.
3
votes
4answers
1k views

Loop MP4 From Converted Animated Gif

How do I convert animated gifs to mp4s that loop? This command successfully converts the gifs to mp4s, but the loop doesn't appear to work: for i in *.gif; do ffmpeg -f gif -i "$i" -loop 0 "0output$...
3
votes
1answer
2k views

Is it possible to convert audio to midi with the shell?

Some might say this doesn't work, but it does, this website does what I want. Can you do this with any common tool like ffmpeg? Or maybe there is a python script somewhere? I couldn't find anything on ...