Questions tagged [conversion]
Conversion between file formats.
31
questions
76
votes
11answers
44k views
Split pages in pdf
I have a scanned pdf file which has scanned two pages on one virtual page (page in pdf file).
The resolution is with good quality. The problem is I have to zoom when reading and drag from left to the ...
103
votes
7answers
155k views
Creating a GIF animation from PNG files
Is there a tool to create a gif animation from a set of png files?
I tried the convert command from the ImageMagick suite, but this doesn't always succeed. Also, I have several issues with this:
I ...
51
votes
10answers
128k views
How to convert TXT to PDF?
I want to convert .txt files to .pdf. I'm using this:
ls | while read ONELINE; do convert -density 400 "$ONELINE" "$(echo "$ONELINE" | sed 's/.txt/.pdf/g')"; done
But this produces one "error" -- ...
5
votes
1answer
1k views
Mapping metadata with avconv does not work
The way I understand man avconv (version 9.16-6:9.16-0ubuntu0.14.04.1), the following command should convert input.ogg to output.mp3 and carry over metadata:
avconv -i input.ogg -map_metadata 0 ...
65
votes
6answers
120k views
pdf to jpg without quality loss; gscan2pdf
When I convert a pdf file to bunch of jpg files using
convert -quality 100 file.pdf page_%04d.jpg
I have appreciable quality loss.
However if I do the following, there is no (noticeable) quality ...
54
votes
9answers
73k views
convert images to pdf: How to make PDF Pages same size
I did something like
convert -page A4 -compress A4 *.png CH00.pdf
But the 1st page is much larger than the subsequent pages. This happens even though the image dimensions are similar. These images ...
12
votes
2answers
13k views
Specify encoding with libreoffice --convert-to csv
Excel files can be converted to CSV using:
$ libreoffice --convert-to csv --headless --outdir dir file.xlsx
Everything appears to work just fine. The encoding, though, is set to something wonky. ...
8
votes
1answer
18k views
How to convert SSH public key from PEM to DER format?
I'd like to convert an existing public key (generated using ssh-keygen) from PEM-format to DER-format
I tried:
openssl rsa -in ~/.ssh/id_rsa.pub -inform PEM -pubin -outform DER -out ~/.ssh/id_rsa....
6
votes
1answer
5k views
Convert .bdf/.pcf font to .psf(u) for using as consolefont?
I am using Arch Linux.
Is it possible to convert a BDF or PCF font to a PSF font for use in console/CONSOLEFONT in rc.conf?
I haven't found anything that can do it,except bdf2psf which I got the ...
59
votes
13answers
123k views
Converting multiple image files from JPEG to PDF format
I want to convert some files from jpeg to pdf. I am using following command.
$ convert image1.jpg image1.pdf
But I have 100 images. How should I convert all of them to corresponding pdfs?
I tried ...
33
votes
4answers
113k views
Convert a .xlsx (MS Excel) file to .csv on command line with semicolon separated fields
I realize that this is not an entirely unix/linux related question. But since this is something I'll do on linux, I hope someone has an answer.
I have an online excel file (.xlsx) which gets updated ...
27
votes
6answers
7k views
Convert between Unicode Normalization Forms on the unix command-line
In Unicode, some character combinations have more than one representation.
For example, the character Ƥ can be represented as
"Ƥ", that is the codepoint U+00E4 (two bytes c3 a4 in UTF-8 encoding), ...
66
votes
9answers
62k views
shell command to get pixel size of an image
Is there a shell command that returns the pixel size of an image?
I'm trying to produce an animated gif starting from different gifs with different sizes using convert (e.g. convert -delay 50 1.gif 2....
9
votes
3answers
73k views
Convert binary mode to text mode and the reverse option
By the following way I convert a simple binary file into a text file
od āt x1 Check.tar | cut āc8- > Check.txt
Which gives a content similar to:
64 65 76 2f 6e 75 6c 6c 00 00 00 00 00 00 00 00
...
9
votes
1answer
2k views
Save HTML from clipboard as markdown text
I want to be able to highlight a section of a web page and copy it to the clipboard then save it to my local disk as markdown. I need an efficient way to do that.
My current cumbersome method is:
...
12
votes
2answers
33k views
How get the best quality when converting from mp4 to avi with ffmpeg?
When I use this, the quality doesn't look bad.
ffmpeg -same_quant -i video.mp4 video.avi
In the ffmpeg documentation is written: "Note that this is NOT SAME QUALITY. Do not use this option unless ...
10
votes
3answers
35k views
How can I embed subtitles into videos with ffmpeg?
I'm told it's possible to embed subtitles (.srt) into video files (.avi) using ffmpeg, but I can't find any mention of it in the man page. Is this possible? What command do I use?
7
votes
4answers
4k 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 ...
5
votes
1answer
2k 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
2answers
2k views
Convert file with integers written in ascii to binary file of integers
I have a file that contains a long list of integers written in ascii separated with newlines, like such:
-175
2
-19345
345592
-45
2355
etc...
I want to convert this file into a "binary" file ...
1
vote
2answers
763 views
Command not working anymore in Thunar custom actions
I used to create a Thunar custom action as presented here in order to extract audio without transcoding from selected (multiple) video files .
The command to be added in Thunar custom actions list ...
9
votes
1answer
9k views
Converting .docx files to plain text and preserving line breaks to maintain line number references to source document: howto & implications?
I'm exporting MS Word content to plain text for use with text&file utilities. I have a constraint where the line numbering feature has been enabled in the MS software, and any reference to line ...
6
votes
2answers
9k views
How to convert WavPack to FLAC?
I need to convert a bunch of .wv files to .flac but I can't seem to find a program to do it. Does anybody know how I can do this?
P.S.: I was wondering why Audacity does not support the importing .wv ...
6
votes
4answers
17k views
How do I re-encode a mixed encoded text file
I've got a log file that is ASCII, except for a few UTF-8 characters (which I can fix for a future version).
For the moment, I need to figure out how to get this file to a viewable/searchable/...
4
votes
2answers
898 views
jpg to pdf without data loss
Trying to make such things:
1st step:
convert img.jpg img.pdf
2nd step:
pdfimages -j img.pdf img1
Comparing source and extracted images in HEX shows difference. How to make such conversion ...
2
votes
1answer
1k views
Convert linked html files into a pdf file?
I would like to convert an online book (linked html files) into a pdf file.
I tried the two-step way in http://kmkeen.com/mirror/2009-02-05-14-00-00.html
First, download the html files by
wget -nd -...
1
vote
0answers
227 views
Can htmldoc create multi-level pdf bookmarks?
I downloaded an online html book (http://www.cim.mcgill.ca/~franco/OpSys-304-427/lecture-notes/lecture-notes.html), by the following command
wget -r -np -nH --cut-dirs=3 -p -k http://www.cim.mcgill....
10
votes
2answers
8k views
Converting .NEF to .JPG
I am trying to convert .NEF files to .JPG and I am using the command:
mogrify -format JPG *.NEF
this produces
mogrify: delegate failed `"ufraw-batch" --silent --create-id=also --out- type=png --...
7
votes
3answers
2k views
How to convert tar file from gnu format to pax format
On the one hand I have a lot of tar files created with gnu format, and on the other hand I have a tool that only supports pax (aka posix) format. I am looking for an easy way to convert the existing ...
3
votes
1answer
662 views
How to convert .doc to ODF with a command line?
I'd like to convert many Microsoft Word documents to ODF (the OO.org formata with a command line (because there are many of them).
(I need them for reading afterwards on a device where reading OO.org ...
2
votes
1answer
3k views
Migrate from thunderbird to sylpheed while preserving folder structure
Is there an automatic way migrate a thunderbird mailbox to sylpheed while preserving the folder structure. I tried the importexport extension for thunderbird and got a directory with multiple mbox ...