Questions tagged [conversion]

Conversion between file formats.

Use this tag if your question is about converting between file formats. You should also use one or two tags that reflect either the type of file or problem area (, , , …), or the source and target formats (, , …).

Some common conversion tools:

329 questions
182
votes
5 answers

How to do I convert an animated gif to an mp4 or mv4 on the command line?

What command would I use to convert an mp4 or mv4 video file to an animated gif, and vice versa. That is, convert a animated gif to a mp4 or mv4.
stinkypyper
121
votes
9 answers

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 can't tell what the progress is. No matter what I…
Yotam
  • 2,684
  • 6
  • 29
  • 32
106
votes
10 answers

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.gif -loop 0 animated.gif). The problem is that…
blue
  • 2,812
  • 4
  • 17
  • 14
81
votes
11 answers

Split pages in pdf

I have a scanned PDF file in which two different real pages appear together on one virtual page. The resolution is with good quality. The problem is I have to zoom when reading and drag from left to the right. Is there some command (convert, pdftk,…
xralf
  • 16,149
  • 29
  • 101
  • 149
73
votes
12 answers

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" -- if there's a very long line in the text file, it…
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
67
votes
13 answers

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 $ convert image*.jpg image*.pdf It doesn't…
Pratik Deoghare
  • 1,217
  • 1
  • 11
  • 16
66
votes
6 answers

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 loss: Start gscan2pdf, choose file-> import (and…
student
  • 17,875
  • 31
  • 103
  • 169
62
votes
9 answers

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 are scanned & cropped thus may have slight…
Jiew Meng
  • 2,393
  • 7
  • 24
  • 28
60
votes
4 answers

Encode with ffmpeg using avi to mp4

What command lines to use to convert from avi to mp4, but without destroying the framesize and making the file small as the original size or a little bit bigger, and same thing with mp4 to avi? Whenever I tried converting it became like 2 gb
dale
  • 757
  • 1
  • 5
  • 9
49
votes
6 answers

Is there a command-line tool for converting html files to pdf?

I would like to install a command line tool within a Docker image in order to quickly convert *html files into *pdf files. I am surprised there is not a Unix tool to do something like this.
EB2127
  • 663
  • 2
  • 6
  • 7
43
votes
4 answers

Convert OGV video to GIF animation?

I created OGV videos with the gtk-recordmydesktop screencasting program, trying to tackle this problem here with bruteforce over X. I can view the videos with VLC. Now, the task is to find some ways to convert OGV videos into GIF animations so I can…
user2362
38
votes
7 answers

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), or as "ä", that is the two codepoints U+0061…
glts
  • 572
  • 1
  • 4
  • 12
35
votes
4 answers

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 periodically (by someone else). I want to write a…
allrite
  • 453
  • 1
  • 4
  • 5
24
votes
5 answers

How do I convert a '.pages' file to something unix-y?

I have a file with the extension '.pages´. I think that means iWork, but I'm not sure. Anyway, searching for "convert pages linux" produces a fair few false negatives! Does anyone happen to know a way to convert it to something reasonable on…
Andrew Stacey
  • 2,355
  • 3
  • 19
  • 21
18
votes
3 answers

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 PDF pages in landscape, rather than portrait,…
patrick
  • 1,002
  • 1
  • 10
  • 16
1
2 3
21 22