Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
27 views

How can i remove ImageMagick 7 completely from ubuntu 18.04?

I have to remove ImageMagick 7 completely from my system. I have a rails app which requires ImageMagick 6. I have tried the following commands to remove but nothing works. 'sudo apt remove --purge ...
-1
votes
0answers
17 views

imagemagick - how to convert to PC bitmap, Windows 95/NT4 and newer format

I have a bmp file which has the following properties (file command): PC bitmap, Windows 95/NT4 and newer format, 560 x 240 x 1 I have tried to convert other file to that format but without success, ...
1
vote
1answer
80 views

Imagemagick: Installing Jpeg Decode Delegate with Existing Installation

I installed ImageMagick 7.0.8-11 Q16 x86_64 from source, and I didn't know that decode delegates are not automatically included when installing from source. I should have installed a binary of ...
0
votes
1answer
292 views

Install imagemagick with libheif on linux debian machines

I can't get a straight answer to the following simple questions: GENERAL CASE: how do you install an application via apt-get compiled with an optional library? SPECIFIC CASE: I want to install ...
0
votes
2answers
46 views

A bash script to square a tall image of a long text column?

Ever seen a print of a long discussion thread? Looks like the picture of a skyscraper… with only the building in it! So what I generally do — manually! — is break up the image into segments, and then ...
0
votes
2answers
89 views

Redirect output to standard out instead of file

I am writing a java wrapper for convert (which is part of image magick). What I want to do is call a command like convert -thumbnail 1024 test.JPG >(cat) to make it print the thumbnails byte stream ...
1
vote
1answer
57 views

Convert scanned image to PDF with fixed DPI

Imagine I have a bunch of JPEG files that I have scanned using a known resolution (300 dpi in this case). However the JPEG file has some additional margin at the border because the scanner's area is ...
0
votes
1answer
77 views

Convert an A4R (A4 lanscape) scanned jpeg, to A4R (A4 lanscape) pdf

I have have scanned an A4R paper sheet to a 2048x1443 jpg file. EDIT1 : It's already rotated to landscape (2048x1443). END OF EDIT1 Now if I try convert it with this command : $ convert -page A4R ...
3
votes
0answers
238 views

RGB color space not permitted on grayscale

I tried to convert PDF to PNGs $ convert linkedList.pdf -quality 300 output.png convert: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `output.png' @ warning/png.c/...
2
votes
1answer
68 views

How to pass very many options to ImageMagick?

I am using ImageMagick to compose many images. for counter in {1..$limit} do partial=... x=... y=... convert $canvas $partial -geometry "+$x+$y" -composite $canvas done Basically I ...
6
votes
2answers
1k views

Convert PDF to images in 1920x1080

i want to convert a PDF to PNG images using convert. The images must fit the 1920x1080 ratio by having a ?x1080 ratio, and have the best quality. Here are many options i can use with convert : https:/...
1
vote
3answers
44 views

After installing ImageMagick I don't have the tool imgout

uname -a Linux localhost.localdomain 4.13.16-100.fc25.x86_64 #1 SMP Mon Nov 27 19:52:46 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux I tried to install ImageMagick using the command: yum install ...
0
votes
2answers
28 views

Find + paste + find: do multiple queries to each file

I am trying to get for each file in a directory, a row with at least, the following fields (the order doesn't matter, although that one is the preferable): - Image resolution, in case it is an image....
1
vote
0answers
32 views

Cli add grid to batch of images [closed]

I need some command that adds a grid to a series of images. Something like: $ convert image*.png -addgrid 1cm The closest alternative that I found was to break the image into parts (with convert -...
0
votes
1answer
27 views

Can I skip N images when creating a gif from png files?

I have several png files named aoa19.5Pressure.XXX.png where XXXX is a four digit number. The names are such that the numbers are sequential. I want to convert these into a gif. When I run convert ...
3
votes
3answers
988 views

GNU parallel with for loop?

I've found answers close to this but fail to understand how to use them in my case (I'm rather new to Bash)... so, I'm trying to process a folder containing a large image sequence (100k+ files) with ...
0
votes
1answer
86 views

ImageMagick - Incrementing file names over several for loops

This is a Bash question about renaming / incrementing file names with a series of 'for' loops. I don't understand the behavior... Working with the ImageMagick convert command If I do this with say, ...
2
votes
0answers
134 views

Create small high-quality GIF/APNG from a bunch of PNGs

I have 50 PNGs (like those ones here) and I would like to create a GIF (or APNG) animation from it that approximately retains the quality and is small. What I'm doing so far is to rescale and throw ...
1
vote
1answer
340 views

Automatically restoring verticality of the edges of a scanned photo

I want to scan a collection of rectangular photos, both color and black-and-white. I am generally quite happy with the scanning, but I run into some practical problems, due to the fact that photos are ...
1
vote
2answers
72 views

Will running a 32-bit version of ImageMagick result in half the memory usage of a 64-bit version?

I am using ImageMagick to process large TIFF images, and I am running into memory issues as the processing happens in a limited resource environment (Function Compute on Alibaba, which is almost ...
0
votes
0answers
79 views

Environment variables in Subshell

I try to execute ImageMagick on MacOS in an Ant script. Although there's no problem while running in the Terminal, Ant throws an error... [exec] dyld: Library not loaded: /ImageMagick-7.0.7/lib/...
-1
votes
1answer
202 views

ImageMagick installation fail on Linux Mint [duplicate]

I am trying to install ImageMagick on Linux Mint. This is the source for installing that I am usingImageMagick sudo apt-get build-dep imagemagick Reading package lists... Done Building dependency ...
0
votes
0answers
26 views

Building ImageMagick command

Given a 1024x1024 .png image (RGB) I'm trying to get a 1024x1024 .png image with transparent background where the source image is resised at 810px, centered, has rounded corners, and applied the ...
0
votes
0answers
26 views

Understanding transparency on images: imagemagick != gimp

I'm trying to understand how the transparency is used, because I've strange outputs. So, first here is my base image with a white background: In my browser (firefox), it displays quite "dark", and ...
2
votes
1answer
31 views

Convert image with uncommon aspect ratio without stretching the image

I have found a map online, I like to print out (see link to original here: http://collections.lib.uwm.edu/digital/collection/agdm/id/4614/). However, it has an uncommon(?) aspect ratio, which I would ...
1
vote
1answer
30 views

How to get convert to not interpolate pixels?

I am using ImageMagick's convert to convert a bunch of .fits files (an image format used in astronomy) to an animated .gif. My astronomical images are pretty low resolution (150 x 300 pixels) but ...
0
votes
1answer
48 views

get coords of all instances of a subimage

This command: compare -metric mse -subimage-search image.jpg subimage.jpg null: gives me value for given metric and coordinates of an occurence of a subimage. What if I want coordinates for all the ...
2
votes
1answer
367 views

Preserve image's modification time with mogrify/imagemagick

I have a huge collection of family photos which I don't really need full resolution of. I want to use mogrify but I tried it on a sample set of images and it seems that it sets modification time of ...
0
votes
1answer
50 views

How can I run script for all directories?

Suppose I am at the main directory which contains script.sh and subdirectories, each of subdirectories contain images. The script.sh is a script for resizing images. I want to apply this script to ...
1
vote
3answers
126 views

How can I resize images in subfolders with these conditions?

Let's say I have a folder with many subfolders in it. Each of these subfolders contain many images. I want to resize these images in each subfolders with the following conditions: If the image's ...
3
votes
1answer
3k views

imagemagick command not found?

I am using Linux Mint 18. The following shows that imagemagick is installed. But how do I use it? $ sudo apt install imagemagick Reading package lists... Done Building dependency tree Reading ...
1
vote
0answers
722 views

Clear image background and remove vertical line

I want to clear vertical line and other black spot which is near to number. Here is my Input image:- I tried below command but it's remove vertical line but also cut number and still black spot ...
4
votes
1answer
779 views

webp animation to gif animation (cli)

I was surprised today to find apparently how difficult it is to go from a webp animation to gif animation. My GIMP 2.8.22 and ImageMagick 7.0.7-21 on linux 4.14.13-1-ARCH don't seem to support the ...
2
votes
1answer
63 views

Can't figure out what command to use for folders

So I'm making a batch script to convert images (png, jpg) and resize (in pixels and percentage) them. I'm working with dialog and imagemagick. My problem is that I can't find any command/code to when ...
1
vote
1answer
299 views

Why does my shell script not execute sequentially? (might be imagemagick?)

I made a simple bash shell script to perform three imagemagick commands on every file in a directory. I did not use & nor | to make each command run concurrently. #!/bin/bash jpg="$1/*.jpg" jpeg=...
1
vote
2answers
229 views

Is there a convenient way to insert blank pdf pages into my pdf?

I have a pdf file foo.pdf. I want to create a pdf file foo-blankbacks.pdf whose odd pages are the pages of foo.pdf and whose even pages are blank. Can this be easily accomplished from the command line?...
2
votes
3answers
486 views

Corruption problems if I stop imagemagick convert

I want to resize a bunch of images (around 1 million) using imageMagick convert function. I am using Ubuntu 16.04 This is taking longer than I thought it would (been running about 5 hours - I can ...
2
votes
1answer
203 views

Create Palette Image with Multiple Rows Using ImageMagick

I have learned how to generate a palette image from a source image using ImageMagick: convert source.png -colors 256 -unique-colors -scale 1000% palette.png An image with a single row of colors, ...
6
votes
1answer
390 views

How can I put one photo in the top center of two other photos?

I have three photos, a.png, b.png and c.png, I need to combine them into two rows (top and down) so that a.png be in the top center of b.png and c.png i.e. it looks like a.png b.png c.png I used ...
0
votes
1answer
37 views

Replace a certain color of pixels in a png with another png image

I have a png (items.png) which consists of mostly black pixels. I want to replace all the black pixels with another image. (background.png) The images are not the same size, items.png is smaller ...
3
votes
1answer
929 views

Imagemagick 'convert' text to image: ReadTEXTImage: Assertion

I'm trying the following command to convert text to an image: $ echo test | convert text:- text_box_trimmed.png convert: ../../coders/txt.c:198: ReadTEXTImage: Assertion `exception->signature == ...
0
votes
3answers
83 views

rotate single image to multiples angles with imagemagick

I have one round image. I need to rotate this image in 1 degree steps. i.e. 60 rotated images of single image. How may I do this with imagemagick ?
2
votes
1answer
4k views

How to convert an image to a 24-bit BMP in commandline?

I'm writing a wrapper Bash script for ARSS to make it easier to use. The program converts images to sounds and vice-versa but it only accepts 24-bit BMP images, which I was only able to produce using ...
2
votes
0answers
263 views

Limit imagemagick resource consumption

Imagemagick's convert -list resource lists the resource limits for imagemagick processes: File Area Memory Map Disk Thread Throttle Time ----------------------------...
0
votes
1answer
150 views

Find gif/jpeg files with png extension and convert to png

First command find and list jpeg/gif files with png extension. Second command convert a file to png. find . -type f -name "*.png" | xargs -L 1 -I{} file -i {} | grep -v 'image/png; charset=binary$' ...
1
vote
0answers
190 views

correct syntax for use of file descriptors with imagemagick

According to the ImageMagick manual, file descriptors are supported as of v.6.4.9-3. I am running v.6.9.7-4. However, I have been able to determine the correct syntax. Examples tried: convert 'xc:...
1
vote
1answer
161 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
57 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
2k 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
691 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 -...