Questions tagged [convert-command]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Zachary Vance's user avatar
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 ...
fixit7's user avatar
  • 2,993
13 votes
3 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 ...
Al Lelopath's user avatar
8 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 ...
SuRa's user avatar
  • 333
43 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 ...
Wizard's user avatar
  • 2,841
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 ...
Amy Bomer's user avatar
0 votes
2 answers

how to convert the content of subfolders recursive to pdf format? [duplicate]

i have a folder with tons of subfolders containing png's. how can i step recursively through the subfolders and convert that files to pdf? The pdf should have the name of the subfolder and be saved ...
Peppi Holland's user avatar
49 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 ...
Sergiy Kolodyazhnyy's user avatar
1 vote
1 answer

How do I prevent imagemagick's convert comand from scaling an image?

I'm trying to make sprite sheets out of animated gifs. The sprites are for my GPS, and each frame needs to be exactly 80x80 pixels. I used this command: convert -resize 80x80 input.gif g.png ...
j0h's user avatar
  • 14.7k
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 ...
Byte Commander's user avatar
  • 106k
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, ...
user1170330's user avatar
17 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 ...
PHP Learner's user avatar
  • 2,738
-1 votes
1 answer

What is the complete command to be type in the command prompt to add the execute permission? [duplicate]

Help! I just need to know the complete command. To add the execute permission. Please.
user369810's user avatar
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 ...
codelec's user avatar
  • 11
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 ...
user avatar
57 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's user avatar
  • 709
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 ...
Huria's user avatar
  • 71
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, ...
Grumbel's user avatar
  • 4,689