Questions tagged [imagemagick]

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
342 views

Imagemagic convert renders only some utf-8 symbols

Imagemagic's convert util (render simple label feature) renders only some of utf-8 symbols. Here is example: convert -background white -fill black \ -density 600x600 -size 1346x756 -font DejaVu-...
2
votes
1answer
85 views

Pack images into PDF

I have many screenshots which were all taken under the same conditions: Same display resolution, same display scaling, PDF viewer at the same size, PDF zoom level the same, etc. They are of different ...
19
votes
3answers
3k views

Get over 2 GB limit creating PDFs with ImageMagick

I am using convert to create a PDF file from about 2,000 images: convert 0001.miff 0002.miff ... 2000.miff -compress jpeg -quality 80 out.pdf The process terminates reproducible when the output file ...
0
votes
1answer
2k views

Bulk Resize images in sub directories with Imagemagick

I'm trying to resize all images in a directory and sub directories. I have this script which I got from here: Use mogrify to resize large files while ignoring small ones and adjusted to: identify -...
3
votes
1answer
872 views

How ImageMagic decides colour maps?

I've updated to IM 6.9.9-3 recently and found some very inconsistent behaviour. Here are two seemingly similar images: image1.png image2.png Let's have a look at what IM thinks of their ...
0
votes
0answers
135 views

How to split an image with offset using ImageMagic? [duplicate]

I planning to print a large map(6400x15360) and I want to split that image to multiple images(1123x794). I found that -crop 1123x794 do that but How I can add offset so it will be easier for me to ...
1
vote
0answers
59 views

match and replace section in PNG file

is it possible to use command line program to replace a section within PNG when it match sample picture? like: When weather report in PNG match the image of "sun.png", replace that specific section ...
2
votes
1answer
31 views

How to preserve the original extension after multiple files manipulation

This follow is a useful command to add a border to multiple images (require ImageMagick package): convert -border 5x5 -bordercolor "#008000" *.png imgs The result is that the new files will be named ...
1
vote
0answers
387 views

Imagemagick resize image with heigh and aspect ratio constraint

I am trying to resize any image by determining its aspect ratio and then resizing it to a height of 800px with the width depending on its aspect ratio ex1. 3200x1600 -> 1600x800 ex2. 1000x1000 -&...
3
votes
0answers
186 views

ImageMagick: PNG to GIF: make any not completely transparent pixel solid

I'm trying to create a GIF animation from a set of transparent PNG images in various resolutions. When I -resize the edges are aliased. The background is probably quite predictable so I could make it ...
32
votes
3answers
31k views

How to rotate a set of pictures from the command line?

I have a large set of JPEG pictures all with the same resolution. It would take too long to open each one inside the graphical interface of imagemagic or gimp. How do I achieve each picture being ...
20
votes
1answer
8k views

How do I take a screen shot of my Xvfb buffer?

I'm using Amazon Linux. I want to run a headless chromium browser to use on my node.js Selnium tests. So I fire up my Xvfb server like so ... if ! pidof /usr/bin/Xvfb; then Xvfb :0 -screen 5 ...
3
votes
1answer
2k views

Shell script to convert PDF to images and save in sub-folder

I'm trying to write a bash scrip that uses Imagemagick to convert PDF's to images in a given directory (passed as an argument), and then save that conversion into a sub-folder of that directory. I ...
1
vote
0answers
77 views

Convert multiple group of PNG files to multilayered ICO files

Let say I've many files named e.g.: FirstIcon_16.png FirstIcon_32.png FirstIcon_colored_16.png FirstIcon_colored_32.png SecondIcon_16.png SecondIcon_32.png SecondIcon_colored_16.png ...
2
votes
1answer
528 views

Border with ImageMagick

In Crop and resize image to fit a5 pdf I asked how to fit an image in a landscape A5. Now I'd like to add a border or frame for the image and a tagline in the bottom (between the bottom line and the ...
2
votes
2answers
1k views

ImageMagick: resize the image without scaling it

I have an image example.png, which is 50x50 pixels, mostly transparent and some black shape. What I want to achieve with imagemagick is, create a new image, example_output.png, which would be 100x100 ...
3
votes
1answer
1k views

Crop and resize image to fit a5 pdf

I have an image (png, size 4288x2848) that I want to fit in a landscape a5 pdf with a 1cm border. I know I can do it with ImageMagick but don't know how.
4
votes
2answers
4k views

Building error - how to fix missing header file

I'm trying to build cuneiform from source with imageMagick support, but it looks like the debian package missing a header file. When I'm running make it fails at the very end of the process: [100%] ...
1
vote
0answers
180 views

Generate checkerboard superposition of two images

I would like to find a command that allows to combine two images (A.png and B.png) and generate a checkerboard superposition of the wo (like you can see below). I have searched ImageMagick and convert ...
6
votes
2answers
217 views

How to find y-axis joint similarity in two pictures?

I want to merge two pictures but I do not know how to find the cut location in y-axis by any Linux/Unix tools, but here ImageMagick as the first idea. Any approach is welcome: a programmatic solution ...
16
votes
2answers
3k views

How to cut image by top 30% in Unix?

I want to cut 30% from the top of the image. I know the thread How to cut a really large raster image into smaller chunks? but there is no successful approach because I cannot find a distance measure ...
7
votes
1answer
305 views

Access ImageMagick's man page

On my system I have ImageMagick and its documentation installed: $ apt-cache pkgnames imagemagick imagemagick imagemagick-6.q16 imagemagick-dbg imagemagick-doc imagemagick-common I can access ...
1
vote
0answers
138 views

imagemagick create pdf from 2 different images

I want to create a pdf by imagemagick with 2 different images. I have command convert -density 1 -size 2255x2255 xc:salmon[100x100] -density 1 image_1.jpg -density 100 image_2.jpeg -composite ...
0
votes
1answer
87 views

Problems installing imagemagick: look like compilation errors

I'm trying to install ImageMagick 6.4 on a new (Linux Mint 18) linux installation. I want 6.4 since that's the version we have on our server. I downloaded a tar.gz, unzipped it, ran configure and ...
1
vote
1answer
415 views

mogrify -monochrome to several Picture

I have some Picture, that I want have in black and white. I'am in the right folder. -rw-r--r-- 1 alex alex 1027 Jan 21 13:07 target-0.jpg -rw-r--r-- 1 alex alex 1001 Jan 21 12:17 target-1.jpg -rw-...
6
votes
1answer
975 views

Tool to automatically extract sub-images that are inside an image: sub-images separated by whitespace

Is there a tool/script which can extract images (save them as separate image files) inside an image, each sub-image is separated by whitespace? This: Would result in 3x: Image Source
1
vote
1answer
181 views

Unusually large favicon generated by ImageMagick

I am generating a favicon image using the following ImageMagick script: convert src/favicon.svg \ \( -clone 0 -resize 16x16 \) \ \( -clone 0 -resize 32x32 \) \ \( -clone 0 -...
8
votes
3answers
2k views

Generate and move thumbnails recursively

I want a bash script which does the following: Find pictures (jpg,jpeg,JPG,JPEG) recursively from current directory downwards Generate a thumbnail with imagemagick's convert Move thumbnail to other ...
2
votes
1answer
4k views

increasing imagemagick memory/disk limits

I find that I cannot increase imagemagick's memory/map/disk limits above their current values: $ identify -list resource Resource limits: Width: 16KP Height: 16KP Area: 128MP Memory: 256MiB ...
0
votes
1answer
278 views

Error installing the rmagick gem in Ruby 1.8.6 rvm - "checking for InitializeMagick() in -lMagick... no"

I have an old Rails app I maintain which uses Ruby 1.8.6. I'm trying to get a new install of Linux Mint 18 up and running so I can develop for the app. I managed to install the same (almost) version ...
1
vote
1answer
307 views

Can't "make" older version of ImageMagick

I need to install a 6.9 version of ImageMagick for an older Rails app which I maintain (which uses Ruby 1.8.6 in an RVM). This is in a new install of Linux Mint 18. I downloaded a "ImageMagick-6.9.6-...
1
vote
2answers
3k views

ImageMagick/GraphicsMagick: How to merge/composite multiple (3+) images without temp files in a single step?

I am trying to create multiple (two or more) small images with different texts/fonts/sizes and then overlay them over a single source image on different positions in a single step (without creating ...
2
votes
1answer
43 views

record image effects as animations

I've done only some very basic stuff with ImageMagick (mainly resizing, also messing with color filters a bit). Imagemagick has a simple example for overlaying images: convert anthony_1.jpg ...
1
vote
0answers
242 views

crop and convert to pdf adds unwanted margin

I have a few PNG files that I want to print in a certain scale. For that I want to convert each of them to (DIN-A4 sized) PDF and crop into multiple pages. So far I've used this command: convert -...
1
vote
2answers
498 views

`convert`ing *.gif to file.pdf hangs/freezes the system

I've 415 gif files in a directory and trying to make a single pdf of them by using the following command: convert /path/to/*.gif file.pdf But it cause for hanging/freezing of the entire system. In ...
3
votes
0answers
667 views

Convert NEF to JPG with optimal brightness

There are multiple tools for converting Nikon raw images (.NEF) to JPEG, as well as there are multiple discussions on this topic (e.g. Converting .NEF to .JPG). My question regards optimal settings ...
1
vote
1answer
565 views

Run GraphicsMagick / ImageMagick on Ubuntu, targeted for Windows

I'm trying to perform a .emf to .png conversion on a Ubuntu 16.04 server. Unfortunately .emf is a proprietary Windows format and so will not work natively. I'm therefore trying to build ...
1
vote
1answer
28 views

imagemagick convertion in segments

How can I convert 5 pictures at a time followed by a wait, then the next 5 pictures in a directory, on N pictures. Here's my code: #!/bin/bash for i in *.jpg; do xload -update 1 & convert ...
7
votes
1answer
380 views

converting pdf pictures to png files makes pictures too small

I'm converting a bunch of pdf vector figures to png files. for f in *.pdf do convert -trim ${f} "${f}.png" done rename 's/\.pdf//' *.png But the dimension of the pictures are too small. The doc ...
-3
votes
1answer
139 views

Writing a script which converts and use xload

I am using ImageMagick. I am trying to write a script which launch 'n' convert runs. 'n' is the number given by user. The script must wait for all 'n' background/concurrent processes to complete ...
3
votes
1answer
1k views

ImageMagick: multiple files conversion & saving with different name

I am creating a bash script. How can I perform a set of operations/transformations (of choice) on all .jpg images in a different directory using ImageMagick's convert utility ? The converted image ...
5
votes
1answer
2k views

Force GraphicsMagick to resize image to specific width

I'm batch processing a folder of image to a uniform width with GraphicsMagick (though I assume the same would apply to ImageMagick): $ gm convert -resize 1000x in.jpg out.jpg But when I inspect some ...
1
vote
0answers
550 views

Flatten transparency in PDF to remove thin white lines?

I have a PDF created with Quark Xpress where some raster images are shown with thin white lines across them. Searching around I have found that the problem is due to the way PDFs readers apply partial ...
1
vote
0answers
1k views

How to open a gif without loop repetition with oeg

I use to open .gif file with eog -f myfile.gif The gif animation is however running in loop. What I want is to display the animation once and then quit. How to avoid this? Please also help in ...
1
vote
0answers
69 views

Identify (and delete) all .gif files with more than 1 frame in all subdirectories

I having the following linux command to identify all .gif files and list its frames in the active directory: identify -format '%n %i\n' -- *.gif Now I want to modify and expand the command to ...
4
votes
2answers
2k views

Generating a PDF from images

I have a serie of ten images. I would like to have them stretched to fit 5in squares centered in a single A4 PDF, one image per page. I would need something working on Mac (in case of some local ...
0
votes
1answer
2k views

Change default image viewer

# ... def show(): """ Show image """ t = Twitter(auth=authen()) try: target = g['stuff'].split()[0] if target != 'image': return id = int(g['...
1
vote
1answer
1k views

Extract text layer from PSD ( ImageMagick or GiMP )

I want to extract text infos from layer ( like font, font-style, font-size and content ) with the name and number of layer. All available command line on standard repo are an option. I know it can ...
1
vote
1answer
40 views

Using convert to create JPGs?

When I use convert image.png image.jpg to convert a PNG to a JPEG, does convert perform any lossy compression? How much?
1
vote
0answers
722 views

To Adjust Brightness-Contrast in Plane with Gimp/ImageMagick/...?

This kind of plane is a common tool used to view Rontgen pictures in Radiology. It exists as a standard in many RTG programs in hospitals. I would like to have a similar tool open-source for ...