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.

1
vote
0answers
29 views

What does this 'exif:GPSInfo: 8253' mean in ImageMagick identify command?

Totally love the tool and documentation and currently trying to use EXIF data to geotag my own pictures. Just wondering what this exactly means: exif:GPSInfo: 8253 It pops up in the exif section ...
0
votes
0answers
9 views

Using convert to crop scanned images and create pdf

I have 3 images I've scanned, that are legal sized (8.5*14), but the scanned paper is actually letter (8.5*11). I want to crop off the bottom 3 in from each image and output 1 image per page. This ...
1
vote
1answer
50 views

`Convert` and standard output

I am learning how to use terminal and as an exercise tried to convert a bunch of .png images to ASCII-art using convert and jp2a with this command: convert test.png -format jpg - | jp2a - This ...
0
votes
1answer
74 views

imagemagick convert - compress all files in the directory

I run the following command to compress jpg file: convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% source.jpg result.jpg How to execute it for all jpg files in the directory where ...
0
votes
1answer
70 views

Fake Transparency in URxvt Using ImageMagick in i3

The most popular way to set your background in i3 seems to be using feh, via something like: exec_always feh --bg-fill /home/user/Pictures/wallpaper.jpg in your ~/.config/i3/config file. Then, in ~/....
0
votes
1answer
161 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
vote
1answer
106 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 ...
1
vote
1answer
583 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
47 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
133 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
65 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
121 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
371 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
75 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
47 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
31 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
47 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
29 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
1k 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
117 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
145 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
474 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
77 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 ...
-1
votes
1answer
236 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 ...
2
votes
1answer
34 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
34 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
74 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
452 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
53 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
144 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
780 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 ...
5
votes
2answers
1k 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
318 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
284 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
520 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
239 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
402 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
39 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 ...
2
votes
1answer
1k 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
104 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
5k 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
300 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
157 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
208 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
200 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
58 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 ...