Tagged Questions

ImageMagick is an open source image editing software suite for displaying, converting, and editing raster image files. It supports read/write for more than 100 image file formats.

learn more… | top users | synonyms

2
votes
2answers
93 views

How to split an image vertically using the comand line?

So, say I have a large 800x5000 image, how would I split that into 5 separate images with dimensions 800x1000 using the command line?
4
votes
1answer
48 views

Ways to convert and combine image files into a pdf file?

I have about 190 image files (png and jpg) in a directory. For more information, each image has 2500 x 3072 pixels, and about 500KB. I use the command convert from ImageMagik to convert and combine ...
0
votes
2answers
23 views

differences between -resize and -size, and between -repage and -page for convert?

For Imagick's convert, what are the differences between -resize and -size, and between -repage and -page? If I want to convert some png files to a pdf file, and change the size of images (as ...
2
votes
1answer
39 views

Sorting image files based on whether the content is picture or graphics: updating an older solution?

Someone wanted to sort files in a directory according to whether the files are pictures(camera) vs. design graphics. On Stackoverflow, there is an older solution/proof-of-concept involving the ...
0
votes
0answers
13 views

Match the palette color property output list from Imagemagick convert with online color descriptions?

I use ImageMagick to extract a linear swatch of unique colors from some image to explore different color palettes; list properties of these colors; and make an approximation of the "average" color - ...
2
votes
2answers
19 views

How to resize only the missized images?

I have a directory with 10,000 JPEGs. I made a mistake while generating the files and now some are 720px × 480px, but they should all be 448px × 336px. The directory contains both the too large files ...
3
votes
1answer
71 views

Why is ImageMagick's `compare` command so slow and is there an alternative?

I have a shell script running on an little Atom based Micro-ATX box that is doing some watchdog-like functions for a number of devices on a local network. One of the things it's doing is monitoring ...
7
votes
1answer
155 views

Combine multiple PDF files into one (arranged in a matrix)

Having a set of PDF files, lets say: in-01.pdf, in-02.pdf, in-03.pdf, ... I would like to combine all of them into a single one, forming an M x N matrix. The command montage allows for doing so (M ...
0
votes
0answers
31 views

Get color depth of BMP

I have a .bmp file, and I want to check the color depth. How do I do this? I have tried both file and convert, but they give different outputs, so I don't know which is right.
0
votes
1answer
40 views

How can I make a montage which seamlessly tiles the same one image file?

I would like to preview how one single image (768x1024 px .tiff) would look as a pattern by generating an output file where it is tiled in such and such a way (4x4, 5x5, etc.). The image should be ...
1
vote
1answer
46 views

Merging pairs of TIFF files in a directory

For example, say a given directory has 1000 TIFF files named sample1.TIFF, sample2.TIFF, etc., all the way to sample1000.TIFF. I want to merge each pair of files: sample1.TIFF and sample2.TIFF are ...
2
votes
1answer
96 views

Image size with gscan2pdf and ImageMagick `convert` bloat

I scan all my important incoming physical-mail to PDF. I am trying to move this activity to Linux as part of the process of eliminating my dependence on Windows - where I used to use the excellent but ...
1
vote
2answers
56 views

Bulk rename and resize with Imagemagick

I need to convert a very large number of images that are called 1a.jpg, 2a.jpg, 3a.jpg using Imagemagick to be processed and renamed 1.jpg, 2.jpg, 3.jpg (in the same directory). The Imagemagick ...
0
votes
1answer
209 views

Can't remove ImageMagick using yum remove

I want to remove the ImageMagick,But I got this error [root@localhost ~]# cat /etc/redhat-release CentOS release 6.4 (Final) [root@localhost ~]# rpm -qa "ImageMagick*" ...
16
votes
6answers
719 views

How to type several file names with fewer key strokes

If I want to convert a pdf to a png image with imagemagick I do something like: convert -trim -density 400 this_is_a_very_long_filename_of_my_pdf_file.pdf ...
2
votes
1answer
460 views

How to convert, resize and center image with ImageMagick

I'm unable to center a converted *.png file with ImageMagick's gravity option. Gravity seems to have no effect in the following command. On the contrary it erases everything and the output becomes ...
1
vote
0answers
106 views

Imagemagick batch crop / rename to new folder

I am in the middle of writing a bash script which involves imagemagick taking a set of images in one directory, cropping them at 16/9 ratio from the center, and renaming them "image" + 5 digit number. ...
0
votes
1answer
40 views

How can I make my command more susceptible to system slowdowns so as to use it as a visual QoS widget on my desktop?

I had some system slowdown event1 after mistakenly using a command so I thought I could use a desktop "widget" to visually show quality of service or at least show when QoS was degraded and get some ...
0
votes
2answers
154 views

Shell Script Output not written to file properly

I tried to put the output of my program into a text file. It appends the echo commands to the file properly, but the imagemagick "compare" command is not appended to the file. It just STOUD's the ...
4
votes
1answer
222 views

Imagemagick: set IPTC parameters in jpeg image

With the Imagemagick command $ identify -verbose image.jpg so many properties of the image are shown. For example, in the output I can find Profiles: Profile-8bim: 1058 bytes Profile-iptc: 1017 ...
1
vote
1answer
88 views

Can I select a region for the screenshot via keyboard in import

Can I select a region for the screenshot via keyboard in import from ImageMagick? If yes, how can I do it? If no, what can I use instead of import?
4
votes
1answer
620 views

ImageMagick (or other) for UTF-8 text to image

I'm trying to create many single-character images using convert. The purpose is to provide a plastics specialist with images to print onto keyboard keycaps. The ImageMagick documentation suggests ...
5
votes
3answers
320 views

How to rescale several images to same size

I have several image files in a directory. These images are similar size and have same background color. How can I make all images same size by adding background like this attached image?
1
vote
1answer
1k views

unable to open X server [duplicate]

I am trying to display the dimensions of an image and then resize them with a program my system says is there called Package ImageMagick-6.5.4.7-7.el6_5.i686 already installed and latest version. But ...
0
votes
1answer
171 views

Imagemagick segmentation-fault

I statically compiled Imagemagick. Converting images works well so far. But when I run identify -list delegate it shows my delegates, but then exits with "Aborted (core dumped)". Here is the strace ...
0
votes
1answer
131 views

Compiling ImageMagick with special path to librairies

I have been compiling ImageMagick 3.1.2 with the following options ./configure --prefix=/usr/local/imagick-3.1.2/ --with-php-config=/usr/local/php-5.3.13/bin/php-config ...
1
vote
0answers
62 views

Is there an approach to have feh --thumbnails do not display filename?

I have many pictures which are screen shots created from shutter and downloaded from web. These pictures have long file names. When I create thumbnails on these pictures via feh -t, these long file ...
2
votes
0answers
835 views

Can't Install ImageMagick on Centos using Yum

I am trying to install ImageMagick on my dedicated-virtual Centos server for use with PHP. I first ran the following commands successfully: # yum install gcc php-devel php-pear # yum install ...
1
vote
2answers
2k views

Convert image with imagemagick command line convert tool

I have an image Image.png. How do I use the ImageMagick command convert to make this file into a Image.jpg file with the following requirements: File size is 200~500 kb. Resolution in not less than ...
1
vote
0answers
44 views

Convert command produces a small error [closed]

First off, I'm on a Mac, but I think this can be solved here. I'm converting a .gif animation to a series of .png's using. $ convert ex.gif my_png_files_%d.png I get a series of .png-figures but ...
6
votes
3answers
583 views

ImageMagick on multiple files

I have converted a single file from BMP to PNG with ImageMagick's convert using the command below convert CD\ Front.bmp CD\ Front.png I have many such files, thus I tried: for f in */*.bmp ; do ...
2
votes
1answer
665 views

convert pdf to png with resize and adding black border

I try to convert the first page of a book to a png, scale the png to a certain size and add a black border. This is what I tried: convert tmp.pdf\[0\] -background white -alpha remove -border 8 ...
0
votes
2answers
504 views

ImageMagick convert script is failing to generate thumbnails

Product Information: ImageMagick Vers : ImageMagick-6.8.6 Operating System : RHEL 6.4. We are using ImageMagick in our CMS application to convert eps files to png files. But the script is not able ...
3
votes
5answers
1k views

Bash: Fastest way of determining dimensions of image from URL

I'm trying to figure out a really fast method in bash of determining an images dimensions. I know I could wget the image and then use imagemagick to determine the height and width of the image. I'm ...
1
vote
1answer
557 views

Imagemagick on open wrt router “UnableToOpenConfigureFile”

I have installed Open Wrt on my TP-Link TL-WR740N/ND v4. Everything works fine but the Imagemagick. I have installed it into ram (no enough space on rom ) with opkg # opkg install imagemagick ...
5
votes
2answers
4k views

How to convert a color pdf to black-white?

I'd like to transform a pdf with some coloured text and images in another pdf with only black&white, in order to reduce its dimensions. Moreover, I would like to keep the text as text, without ...
0
votes
4answers
2k views

How to rotate all images in a directory with imagemagic?

I want to rotate all the images in a directory that match a pattern. So far I have: for file in `ls /tmp/p/DSC*.JPG`; do convert $file -rotate 90 file+'_rotated'.JPG done but that gives no ...
0
votes
1answer
576 views

How to create ico file with more then one image

I can use imagemagic to convert png to ico but (I think, not sure) it will create one image ico file for the size I specify. convert favicon.png --resize 32 favicon.ico And ico file can contain 2 ...
2
votes
2answers
318 views

Remove nth frames of a gif (remove a frame every n frames)

I've recorded a .gif of the screen with ffmpeg. I've used gifsicle and imagemagick to compress it a bit, but it's still to big. My intent is making it small by removing, say, a frame every 2 frames, ...
0
votes
1answer
157 views

How can I create my own imagemagick binary releases?

I'm looking for a way to build ImageMagick binary distributions for deploying my app. I only need it for Kinux 64-bit (Ubuntu/Debian) and OSX. Actually building it is fine, but I have no idea how to ...
3
votes
1answer
1k views

imagemagick's convert unexpectedly changing the background color

what I'm trying to achieve is to pull a simple graphic from a webserver and use imagemagick to change a few colors so that I can then further use this image. This is the imagemagick portion: convert ...
1
vote
1answer
310 views

Imagemagick convert incorrectly sizes landscape pdfs

When I run convert example.pdf example.png I get a png image, but the image in the pdf is off-center and too small. How do I convert so that the png image is the right size and takes the whole ...
0
votes
1answer
1k views

Imagemagick used to generate PPM's in Linux, PPM's are unreadable

I need to generate PPM's as raw data sources for one program. I have a bunch of png's as Input, which I'm going to convert ppm's. When I try a tool like mogrify it generates files, but these are ...
1
vote
1answer
173 views

imagemagick display: different text in font preview

The awesome display command from imagemagick allows me to preview fonts: display ~/.fonts/font.ttf However, the text is always the same ('That which does not destroy me, only makes me stronger'). ...
5
votes
3answers
2k views

Command line convert webp to jpg?

I'm using ubuntu 12.04. I've installed libwebp2 & libwebp-dev So far, no example found on the net of converting webp to jpg. Some webp files can easily converted by using imagemagick with ...
2
votes
3answers
677 views

Howto recursively create PDF thumnbails on linux command line

I am able to use ImageMagick to create a thumbnail of the first page of a PDF using: convert -thumbnail x80 95.pdf[0] thumb_95.png This works fine and generates a thumb_95.png file. I have tried ...
0
votes
1answer
305 views

ImageMagick to detect numbers

I was curious to know if ImageMagick can detect numbers in an image? What is the best way to code for this if it can be done? If ImageMagick cannot do it is there another way to detect numbers on an ...
3
votes
1answer
326 views

Omitting extension with find?

I need to create thumbnails from multiple .png files and would like to do this using ImageMagicks convert utility. To recursively find all files that are not thumbnails themselves, I am using the ...
0
votes
2answers
697 views

raspberry pi keeps killing imagemagicks convert

My raspberry Pi keeps killing imagemagick's convert command when I'm resizing images, especially larger images. Is there any way I can prevent this?
5
votes
2answers
179 views

Imagemagick resize

I am familiar with convert -resize % for decreasing a size by percentage but what is the command to increase an image from say 700 pixels to 800 pixels? Horizontal width should resize, too. I need ...