Questions tagged [convert-command]
18 questions
66
votes
3 answers
How to do I convert an webm (video) to a (animated) gif on the command line?
I suppose ffmpeg is the weapon of choice but I didn't find out how to reach my goal.
brubaker
- 819
55
votes
3 answers
How to mirror image files via command line?
What I want to do is very simple. I've a file.png, which I want to mirror, i.e. the result should be a "reflection" of the original image.
I know big tools like GIMP and InkScape can do that, but I'm hoping for a command-line utility, something like…
Sergiy Kolodyazhnyy
- 107,582
46
votes
3 answers
ImageMagick:convert-im6.q16: no images defined
According to this question, How can I convert a series of images to a PDF from the command line on linux?, ImageMagick can convert multiple images to a single PDF.
How could I reverse the operation and convert a PDF of several pages to multiple…
Wizard
- 2,951
20
votes
2 answers
ImageMagick "convert" command cannot use fonts!
convert -size 300x50 xc:none -font Arial -pointsize 20 -gravity center -draw "fill white text 1,1 \"$1\" text 0,0 \"$1\" fill black text -1,-1 \"$1\"" $WATERMARK_FILE
Above command results following error:
convert.im6: unable to read font `Arial' @…
PHP Learner
- 2,948
18
votes
4 answers
ImageMagick convert on a multiple files
I have 3 files in a directory:
aaa.jpg
bbb.jpg
ccc.jpg
I can scale down an image using ImagkMagick convert:
convert aaa.jpg -resize 1200x900 aaa-small.jpg
I want to do all the images in the directory, something like:
convert *.jpg…
Al Lelopath
- 691
12
votes
2 answers
How to batch convert an image to a PDF?
I want to batch convert images (jpg, png, etc.) to PDF. Converting them directly to PDF is easy with:
convert in.jpg out.pdf
However I need some more options, such as setting the output page size, margins and rotation between landscape and portrait…
Grumbel
- 4,879
10
votes
3 answers
Convert PDF to Word Using Libreoffice in terminal
I am using the following libreoffice command to convert my pdf files into word(doc)
lowriter --headless --infilter='writer_pdf_import' --convert-to doc:"MS Word 2007 XML" sample.pdf
After converting the output document is having each line bordered…
SuRa
- 363
8
votes
1 answer
Fix animated GIF images which eog can't open, but Firefox and ImageMagick can
I received a collection of animated GIF images from a friend, but I am unable to open some of them them with the standard image viewer eog.
The error messages showing up when trying to open them include:
GIF image loader cannot understand this…
Byte Commander
- 110,243
3
votes
5 answers
JPG batch compression & rename (find -exec, xargs, piping?)
this is my first post so I hope you'll be kind enough to forgive me if I make some formatting mistakes or else. This is one question I've had for quite some time and while looking for answers I have more questions arising. I was trying to find a way…
Huria
- 71
- 2
- 11
3
votes
1 answer
Creating smaller size file of png file
After conversion, the new file size is even bigger. ??
Why is that?
andy@7 ~/Downloads> convert Screenshot_1360x768.png -resize 1024x578! smaller.png
andy@7 ~/Downloads> ls
-rw-rw-r-- 1 andy andy 135725 Sep 7 19:45…
fixit7
- 3,399
2
votes
2 answers
Scale down image such that it fills a square of 100x100
I want to create thumbnails for all images of a folder. I also want the images to fit in a square of 100x100 pixels.
So after scaling the images down, while the smaller side needs to be 100 pixels, the larger side should be cropped so as to make it…
user1170330
- 155
2
votes
1 answer
Thunar - Custom actions: select pdf extract pages as images
I like this command to convert pdf pages to png images:
pdftoppm -png *.pdf prefix
(my source is this answer)
I would like to add a command to Thunar custom actions that would convert the selected pdf's pages to separate images.
When I use the…
user47206
1
vote
1 answer
text editing using tr command
On using the command:
tr -s '\n' ' '< test1
where test1 is a text file.
If test1 is written in a manner such that it contains newlines (linefeed characters) and not \n (backslash-n) then the answer comes as expected that is all the newlines get…
codelec
- 11
1
vote
1 answer
How can I detect PDF policy of ImageMagick
I maintain qr-backup, a program which makes some PDFs.
My users are encountering a bug where convert fails on PDFs. Why and how to fix it is explained here. imagemagick - convert not allowed
What's a simple, fast test I can do (for example with…
Zachary Vance
- 131
1
vote
1 answer
How to encode / convert a complete folder using ffmpeg?
I have 20 music videos in one folder and I want to change the quality from 1080p to 720p with ffmpeg, because I'm tired of having to convert every single file.
So I want to ask for a solution how to convert a complete folder 1 to 720p quality with…
Amy Bomer
- 33