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
0
votes
0answers
10 views

imagemagic: convert +append images : pass the list of files in numeric order rather than alphabetical order [duplicate]

I am trying to join few images into one single image These are the list of files i have to join them horizontally slice_0_0.png slice_0_2.png slice_0_4.png slice_0_6.png slice_0_8.png slice_0_10.png ...
1
vote
1answer
30 views

Shell: Output text to PNG while preserving color

I like to be able to save the output of a shell command as a PNG image without losing the formatting. Kind of like taking a screenshot of the output. some-command-with-color | text-to-png a.png I ...
1
vote
0answers
11 views

How to take annotated screenshots with keyboard only?

Workflow: Take a screenshot Select region on screenshot (an overlay displays keys) Input text Repeat step #2 or save/imgur upload Does something like that exist?
2
votes
1answer
31 views

Why this GIF isn't playing smoothly?

in.gif (814KB) in.jpg (1.03MB) Commands i used to generate a gif - convert -coalesce "in.gif" "0.png" for file in 0*.png do composite -gravity center "$file" in.jpg compose_over"$file" done ...
2
votes
1answer
18 views

Why are my Xvfb screenshots black with traces of color (Ubuntu 16.04 LTS)

I am running a headless Ubuntu 16.04 LTS in the Google Cloud. There is an application I need to run in the background that requires a GUI. I am trying to use Xvfb to allow the program to run, but as ...
0
votes
0answers
10 views

Crop multiple images with variable height using convert

I have a list of images with fixed width but with variable height. 1440x2461 1440x2292 1440x2328 1440x2564 1440x2438 I would like to crop footer of the images by 380px from the ...
0
votes
0answers
35 views

Cannot install InkScape due to problems with Imagemagick dependency in Ubuntu 16.04

I am trying to install the latest version of inkscape on my Ubuntu 16.04 LTS OS but it returns the following error: sudo apt install inkscape Reading package lists... Done Building dependency tree ...
0
votes
1answer
20 views

What is the difference between the -monochrome and the -colorspace GRAY options?

I want to convert a PDF of text to black and white, and was wondering if there was any difference between convert -monochrome in.pdf out.pdf and convert -colorspace GRAY in.pdf out.pdf
0
votes
0answers
8 views

Linux screen capture on multiple X screens

We have a test system with 5 physical monitors. These are arranged/configured to be separate XWindows "Screens". That is, the $DISPLAY would be something like: "0.1", "0.2", ... etc. (So the monitors ...
0
votes
1answer
50 views

How to fill text with image

How can I create such an image using imagemagick: That is, text on top of a solid-color background. The text's fill is not solid color but actually an image, as if the image is the background and the ...
1
vote
1answer
29 views

Recursive thumbnail creation to different destination

I wish to show my photo collection on my television. In order to do this, I need to resize the photos to fit in a 1920x1080px window (because the performance is awful when dealing with the originals). ...
0
votes
0answers
24 views

Converting many PNGs to PDF?

I have been using the following command: convert *.png out.pdf But it seems to be limited to only convert 38 images, the output file is about 50 MB, it makes me wonder if there is a limitation in ...
0
votes
0answers
12 views

imagemagic: split images vertically based on a aspect ratio

I am trying to split the image based on the aspect ratio of 903:600 I have am image of size: 909 (W) x 5481 (H). I want to split the image vertically based on aspect ration of 903:600 I am trying: $...
2
votes
1answer
51 views

Consolidate several GraphicsMagick (ImageMagick) commands into one

There are many times I get single page PDFs that I want to convert to JPEGs and crop the excess whitespace off of. Here is the current set of commands I have which accomplishes what I want: gm ...
2
votes
1answer
27 views

imagemagick can't find files inside subdirectory

this line is supposed to go into each subdirectory, combine every image in there to a pdf of the same name as the subdirectory, and move it to the parent directory for d in ./*/ ; do (cd "$d" &&...
2
votes
2answers
350 views

pipe command output to convert?

I have a folder containing files of the format file(0).jpg to file(100).jpg I can't directly use convert to generate a pdf here because the order ends up being 0,1,100,2,20,21,... echo *.jpg(n) ...
0
votes
0answers
18 views

Converting images from XFC to PNG while retaining dpi

I have a large number of XFC files that I need to convert to PNG. I've tried the ImagMagic convert tool and the xfc2png tool. Both do the conversion. But the resulting PNG file is only 150dpi when ...
0
votes
0answers
90 views

Limit the number of thread in a parallel Bash script

I try to improve with semaphores some photo processing script I use. I run sable GNU/DEBIAN There is a function called travail that uses a given filename as an argument, and that processes the file. ...
-1
votes
1answer
97 views

printing bash prompt and command into the output in addition to command, and its output

I am looking for a way to print the bash prompt, command and its output as shown below into an image for documentation purposes while studying, I wrote a quick command to do that, but I need the bash ...
0
votes
1answer
222 views

ImageMagick identify not working

I am using Debian Buster and trying to use ImageMagick. I have installed ImageMagick on my system by compiling source files as given in this official page. identify -v gives me following, Version: ...
0
votes
0answers
28 views

Deleting images all completely black images and files with the same name

I'm working on preprocessing images for a semantic segmentation task and have two folders with identically named images (one of the images in colour, and the other that have been colour coded for the ...
1
vote
0answers
38 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
23 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
121 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
254 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
309 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
823 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
280 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
2k 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
59 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
297 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 ...
2
votes
1answer
172 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 ...
1
vote
1answer
501 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
1answer
825 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
109 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
3k 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
59 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
45 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....
0
votes
1answer
45 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
2k 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
237 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
219 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 ...
2
votes
2answers
1k 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
96 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
342 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
43 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
57 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
170 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
795 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
72 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
2 3 4 5