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
0answers
8 views

Enumeration Stamping pdf pages with Imagemagick

A .pdf file has 100 pages of images. The goal is to enumerate pages 81-90 in the upper left hand corner. I have been able to enumerate .jpg (Raster) images with imagemagick top=/Users/user/Desktop/...
2
votes
3answers
861 views

Point out my mistake while converting TIFF to PNG/JPG

This is a input tiff image, which I want to convert to JPG/PNG. googledrive-link-to-download-sample As general rule of thumb, I always use following command to convert between 2 image formats (mainly ...
0
votes
1answer
12 views

Combine Multiple pdfs with a new page with text between each

I've read through and tried multiple posts on similar topics and none satisfied my purpose. I have multiple pdfs which are project reports for each week of a 16-week project and are titled Week1.pdf, ...
0
votes
2answers
34 views

check width of image before convert it

I use the following script to convert all jpg and png images: # absolute path to image folder FOLDER="/home/*/public_html/" # max width WIDTH=1280 # max height HEIGHT=720 #resize png or ...
0
votes
0answers
44 views

The process was killed by the system. Why?

I was trying to convert large pdf file to jpg images by command line, using ImageMagick 6.9.7-4 tool (Ubuntu 18.04). convert -density 300 file.pdf page_%.jpg It gave no output, just message that the ...
1
vote
0answers
147 views

Tools to manipulate and generate apng with good compression in linux command line

I have recently working with apng. But apngs are larger than similar gif. Also I cannot find a good tool to manipulate apng. ImageMagick produces png for all modification, like (-color 124). To ...
0
votes
0answers
20 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
236 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
39 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
210 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
39 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
98 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
48 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
114 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
36 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
79 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
108 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
55 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
259 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
85 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
37 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
39 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
1answer
422 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
1answer
81 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
1answer
114 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 ...
1
vote
0answers
55 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
252 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
193 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
93 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
640 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 ...
2
votes
0answers
383 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
1answer
422 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
135 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
150 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
463 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
213 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
47 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
94 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
51 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
89 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
235 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
589 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
83 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
468 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
50 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
133 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
318 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
114 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
34 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 ...
2
votes
1answer
218 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 ...

1
2 3 4 5 6