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

Imagick on node - Composite image with the same image on background with blur

I have this function: async function convertImage(sentenceIndex){ return new Promise((resolve, reject) => { const inputFile = ./content/${sentenceIndex}-original.png[0] const outputFile = ./content/...
2
votes
1answer
80 views

Set PDF tags while converting images to PDF with ImageMagick

I'm converting images to a single PDF-file using convert utility: $ convert "document-*.tiff" -compress jpeg -quality 60 "output.pdf" Resulting document has the following tags set ...
0
votes
0answers
32 views

How can I use one input file into several separate operations

I would like to read one file, do an operation with several different parameters on it and finally save each output as a separate file. Currently I do it as shown in the code snipped below. This reads ...
0
votes
1answer
107 views

how to use ImageMagick's crop to remove “watermark”

How can I use ImageMagick's command line utils to crop several iamges so that I remove the watermark on the bottom of them? Context I have a personal website for my family where I post our photos. A ...
0
votes
0answers
27 views

Command-line tool to overlay XML image labels with original JPG image

I label images for a machine learning algorithm using an open-source tool called labelImg. By default it stores the label annotations (green boxes around objects) in an XML format in a separate file (*...
0
votes
0answers
31 views

Create png image using data in terminal

I use the below code to create a random PNG mx=500;my=500;head -c "$((3*mx*my))" /dev/urandom | convert -depth 8 -size "${mx}x${my}" RGB:- randoms.png How would I populate the ...
0
votes
0answers
37 views

convert -crop only splits part of png

i want to write a bash script, that concatenates some images into one and then splits that one into images of the same size. It works for the most part. My testimages give me a png file that's ...
1
vote
1answer
44 views

How to scale down PDF file (in pixels and in cm)?

I need to automatically convert my pupils' solutions which are photos and scans of various orientations, resolution, quality and file format into a single PDF with fitting dimensions. The dimensions ...
0
votes
1answer
25 views

efficient way to compose all frames in a video to a single image

I've got a 720p video file that is about 20 minutes long. I want to compose each frame in the video using a single operator (e.g. lighten, darken, etc.) to produce a single image output. My thought ...
1
vote
1answer
42 views

Pipe from xwd to ImageMagick's convert produces cropped image

I'm trying to take a screenshot of a remote host (using xwd) and convert it to png (using convert). I need it to be an unattended oneliner, so this is what I'm doing: sshpass -p THE_PASSWORD ssh user@...
1
vote
1answer
55 views

ImageMagick -gravity: portrait-photo frame-of-reference rotated +90

Context iPhone photos of both: portrait & landscape to be time-stamped with EXIF data, via ImageMagick 7.0.10-62 Q16 x86_64 2021-02-07 + Catalina MacOs. ImageMagick installed via:brew install ...
0
votes
1answer
29 views

How to loop sequentially through images in one folder and compare with the latest image in another folder

I am trying to use the shell to loop sequentially through images in one folder and compare with the latest image in another folder. One error i'm getting is - zsh: no matches found: /TiffOut/*.tiff(....
2
votes
1answer
168 views

How can you compress images in a PDF?

How can you increase the JPEG compression level on a PDF using batch tools under Linux? Obviously you can use gs -dPDFSETTINGS=/screen or /ebook, but that downsamples the PDF - it reduces the DPI. It'...
0
votes
0answers
58 views

Linking to wrong .so file on Fedora 33 (libx265) when compiling ImageMagic

On Fedora 33, I'm trying to compile ImageMagic from git. libx265 and libheif are installed from the Fedora fusion repos, along with their -devel packages. When running ./configure --prefix=$HOME --...
0
votes
1answer
31 views

bulk resize height*width problem

I'm trying to resize all images in a directory using this bash script : for i in *.jpg; do printf "Resize $i\n" convert "$i" -resize 336x336 "$i" done But when ...
0
votes
0answers
33 views

Treatment of a scanned logo with ImageMagick

I have an image produced by a scan of a logo, that is supposed to have only one tonality. The pixels close to the edge of the logo have various levels of density. The use will require it to go over ...
0
votes
0answers
41 views

Test xvfb with xvinfo - Unable to open display error

I want to launch xlogo in a virtual dispaly with xvfb and take a screenshot of that with ImageMagick's import. The command I use: xvfb-run -a --server-num=5 xlogo & import -display localhost:5 -...
0
votes
1answer
274 views

ImageMagick generated PDF renders as blank pages in Chrome

I have drawn a png file using Krita: I then converted this file to a pdf file using convert: convert test.png test.pdf When I open this file in my PDF viewer (Evince), I see the image above, just as ...
0
votes
0answers
16 views

How to expand an image and fill it in with transparency?

I had no luck with paint programs so I thought I'd try imagemagick convert. I used using ! < > and having a slash before it. It seems like it will crop it so the height is no more than 1024 but ...
0
votes
0answers
177 views

Convert HEIC with depth to JPEG?

I've extracted a whole bunch of HEIC photos from my iPhone and many of them contain a depth channel. This is because they were taken in a portrait mode. After some digging, I was able to approach to ...
0
votes
1answer
52 views

Output files of mogrify on raw image file conversion to jpg are overly dark

I'm performing a simple transformation of a batch of files taken in RAW mode with an Olympus OM-D EM1 camera (extension is "ORF") to jpeg using ImageMagick. When I run the command, mogrify -...
0
votes
0answers
184 views

Cannot run magick AppImage binary in Linux

Kernel Details: 4.15.0-66-generic #75~16.04.1-Ubuntu SMP Tue Oct 1 14:01:08 UTC 2019 x86_64 Linux OS release details: / $ cat /etc/alpine-release 3.11.6 / $ cat /etc/os-release NAME="Alpine ...
0
votes
1answer
89 views

ImageMagick - transparent background showing as black pixel in 'histogram:info:' output

My script is this… convert test.png -alpha off -format %c histogram:info: Unfortunately, the output treats any transparent background in the PNG as a black pixel, meaning that the count of black ...
0
votes
0answers
22 views

Image conversion using IMAGEMAGIC

I am using convert utility of Image-magic on my MacOS to convert PS graphs to PNG images adding some information to the resulted image convert -undercolor white -background white -alpha deactivate -...
1
vote
0answers
38 views

scanimage returns a broken image

i want to use a raspberry pi (Debian) as scan-Server. For this job I installed SANE and ImageMagick. If I scan with ... Bash: scanimage -p --resolution=25 --mode=Color -l 0 -t 0 -x 210mm -y 297mm >...
1
vote
1answer
139 views

Superimpose multiple images

I have multiple pictures that are look alike, they're all black and differ only in the one dot of the screen, I want to combine them in one picture so I can see all the dots in one picture. How can I ...
0
votes
1answer
137 views

Rotate image if width is greater than height

I have a few thousand rectangular images of various sizes. I want them all to have a longer height than a width. I want to do this by rotating all images whose height is shorter than their width 90 ...
0
votes
1answer
38 views

ImageMagick compare without generating diff image

I'm using ImageMagick compare to calculate the difference between two images every five minutes on a Raspberry Pi. This takes almost a minute, and I suspect much of the CPU load is due to the ...
1
vote
1answer
492 views

ImageMagick - how to preserve exact palette in .PNG

I'm trying to use convert(1) from ImageMagick to convert from .tga to .png (and back again later), while preserving exact palette that was used. Source image is TARGA color indexed file, having a ...
0
votes
0answers
45 views

Is it possible to add a comment to a png file metadata? Imagemagick seems to have no effect

I've tried e.g. convert -comment "hello, world" foo.png bar.png or convert foo.png -comment "hello, world" bar.png and everything else I could think of, but identify -format %c ...
1
vote
0answers
327 views

ImageMagick refused to convert the animated GIF and killed the process silently due to CPU

I tried with these solutions below, but unsuccessfully: ImageMagick convert problem, command killed or silently exits Using disk for processing of huge images ImageMagick convert out of memory ...
0
votes
0answers
20 views

Add tag to each image in a folder recursively

Is it possible to add a tag (that is the name of the folder) to each image in a folder recursively? For example for following folder structure Europe |-Germany |-Austria I want to add tags Europe and ...
0
votes
1answer
256 views

imagemagic: Convert -gravity center not working

I have a bunch of images and trying to convert them to pdf using the below command: $ convert *.jpg -resize 1240x1753 \ -extent 1240x1753 -gravity center -background white \ ...
1
vote
1answer
89 views

How can I use mogrify to target a specific pixel value of the largest dimension so if vertical set height to 'x' or if horizontal, set width to 'x'

So I've successfully used $ mogrify -resize 3000 to accomplish setting dimension on batches of images. What this yields me is exactly that- a group of images that have a 3000px width. The issue lies ...
3
votes
1answer
90 views

libheif giving unknown file type error debian 10

I tried using heif-convert 100 3313.heif 3.jpg to convert my file from .heic to .jpg, but it keeps giving me the error message Unknown file type in 3313.heif. What does this mean? I have libde265 and ...
0
votes
2answers
346 views

Batch conversion of '.tif' images to '.jpg'

I am using Manjaro Gnu/Linux. I have a directory named files, and under this directory, I have around 650 sub directories, with names such as: file1, file2, file3,... Under each sub directory there ...
1
vote
1answer
100 views

Imagemagick Text Placement on Images with Varying Dimensions

I want to be able to overlay text in the margin of images with varying dimensions. Images of varying dimensions will have a black margin that is 30% the width of the image. I have the following bash ...
0
votes
1answer
26 views

Why imagemagick is reading/appending from text file in backward direction

A sample file file.txt regenerated and later used again in the images corresponding to each word present in that text file and.png used.png append_row.png ...
1
vote
1answer
72 views

Why this black box and how to remove it

Generated images from a file cat file.txt | while read line; do for word in $line; do convert -background none -pointsize 72 \ -fill orange label:"\ $word" \ ...
0
votes
0answers
40 views

Process VNC Server with image processing script

Disclaimer: I don't know a ton about VNC clients and servers so hopefully I am using the right terminology:) I have a VNC "server" running on a raspberry pi that accepts my iPhone as a client. When a ...
0
votes
1answer
64 views

How could one, given a thumbnail image in ~/.cache/thumbnails, find the originally thumbnailed image?

I understand that Thunar utilizes tumbler to generate thumbs, and I know these thumbs exist on my system in ~/.cache/thumbnails. My goal is to write a script to check for the existence of a ...
0
votes
2answers
194 views

Install ImageMagick over active SSH Session

How could you install ImageMagick over SSH session? I have been using wget http://www.imagemagick.org/download/ImageMagick.tar.gz and then: tar xfvz ImageMagick.tar.gz to unpack the archive, but ...
1
vote
1answer
390 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 ...
2
votes
1answer
58 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....
2
votes
1answer
332 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 ...
1
vote
1answer
42 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
1answer
85 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
1answer
274 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
103 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
32 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 ...

1
2 3 4 5 6