Questions tagged [imagemagick]

ImageMagick is an open source software suite for displaying, converting and editing raster image files.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Loop with Image Magick in batch file

I'm trying to loop through a folder to convert SVG files to PNG files using Image Magick in a batch file: I am wanting to put the new PNG files into a new folder. This is what I have: for /r %%f ...
1
vote
2answers
27 views

Accessing parent and grandparent directory from linux find and passing to xargs

I'm trying to do a batch imagemagick conversion on all tiffs in directories. The structure of the directories looks like: test 123 456 image.tif 256 857 ...
0
votes
0answers
25 views

Imagemagick resize morph - can't set background color

So I'm having problems setting the background color for a resize animation. I'm reading the tutorial from the official Imagemagick docs. Here is the code from the tutorial: convert rose: \( +...
0
votes
0answers
8 views

Slicing a tall image with specific height using ImageMagick including the last part?

I have a tall image that I want to slice into 2048px height chunks. I am doing the following: magick *.png -crop x2048 +repage output/part.png But the problem is the last part of the image does not ...
0
votes
0answers
19 views

Converting Black and White Images to Grayscale

I'm doing a little image project with imagemagick, but I'm fairly new to everything and pretty mediocre at programming. What I'm trying to do is convert all images that are close to black and white (...
0
votes
1answer
39 views

phpinfo() and convert --version show different versions of ImageMagick

I'm running CentOS 7.7 and a few days ago I noticed that my ImageMagick library is missing the ImagickKernel class. So after a lot of research, I got to the conclusion that I'm running an outdated ...
1
vote
1answer
37 views

Can `magick` rename output file the same as input file with additional numbering?

Suppose in a folder, I have dog.jpg and fish.jpg. I want to resize them by 50% and save them with the same name, but with a numerical index. How can I do that using magick (allowing me to pipeline ...
0
votes
0answers
11 views

Overlaying subsections of transparent PNGs in ImageMagick

I have two transparent PNGS, let's say they are 100x100 pixels big and are called a.png and b.png. I'd like to take a.png, then completely replace a subsection of it, let's say an 80x80 pixel area ...
0
votes
0answers
21 views

How do I “fade out to white” on a PNG image in ImageMagick

I have a page of text which I want to fade out on the edges in a sort of square, so the edges of the square fade to white (the text is on a white page). How could I do this with convert? I have been ...
0
votes
0answers
34 views

Color Differences between imagemagick and ffmpeg

I am turning some text created with imagemagick into a video with ffmpeg. I am noticing that sometimes the color in the image and then the same color after being put into a video looks slightly off. ...
1
vote
0answers
37 views

GIMP/Imagemagick: Breaking single images into multiple images

I have pulled the image files from this Gregg Shorthand resource site with the intent of using the shorthand figures in Anki flashcards to complement my study of the system. You will note that the ...
0
votes
0answers
32 views

Poor image quality after merging multiple image file using montage of Imagemagick

I tried to merge multiple JPEG images files into one JPEG using magick montage -border 0 -tile 4x3 *.jpg outputfile.jpg but the image is of very very poor quality. How do I enhance the image ...
0
votes
1answer
33 views

ImageMagick: How to add multiline text superimposed over picture? Text is truncated

Code - convert -size 2000x1000 xc:none -gravity center \ -stroke yellow -pointsize 50 -font Courier-BoldOblique -strokewidth 3 -annotate +100+100 caption:'Conflict is the gadfly of thought. It ...
0
votes
0answers
15 views

Floodfill on all the border pixels

I would to remove all regions starting at the border of the picture by floodfill, is there a way to do this in imagemagick? More specifically I would like a floodfill with a tolerance value (like +-5 ...
0
votes
0answers
7 views

Replace background by a color using a mask

New to image magick, I can't figure out how to replace the background of a picture with a background mask, even after reading the documentation on mask is still not clear to me how to achieve this. ...
0
votes
1answer
40 views

How to stitch 3 JPEG files horizontally to generate a big image that represent a 2 pages big crossed words? [closed]

I have scanned a big crossed words (2 pages in a tv magazine) using my personal scanner. I have now 3 PNG files that I want to combine to generate the original crossed words. After having scanning ...
0
votes
1answer
77 views

How to batch split images using Image Magick

I want split few bmp images using imagemagick commandline on windows. For the new images, the original file name has to be suffixed with partnumber (eg _01 , _02). I tried it in the following way, ...
2
votes
1answer
72 views

i3wm: Screenshot script fails if bound to key

imagemagick's import shell command takes snapshots of ones desktop. Executing import /tmp/foo.png will convert my cursor into a crosshair and will allow me to select a screen area to capture. ...
1
vote
1answer
48 views

Imagemagick batch convert to webp, without making an animation

I want to convert PNGs to webp, for that I use : convert *.png -quality 90% -set filename:basename "%[basename]" "optim/%[filename:basename]".webp Instead of writing one webp per png, I get one webp ...
3
votes
2answers
923 views

How to convert DICOM images to PNG?

I have some DICOM medical imaging files downloaded from Cancer Imaging Archive. I can convert them from DICOM to several other formats, but as you'll see the conversion isn't working as expected in ...
2
votes
1answer
50 views

How can I use ImageMagick to batch resize and use -extent with transparency?

Version: ImageMagick 7.0.8-68 Q16 x64 2019-10-05 Windows 10: 1903 I have hundreds of logos that I need to resize to a standard and then use -extent to pad back out. magick 608000000000051.png -...
0
votes
0answers
12 views

Recompress Images in PDF File Generated By Scanner

I have a scanner at the office that produces multi-page PDF files, where every page is 100% filled by an image. These files usually weigh 2 MB, I used imagemagick to "recompress" it a bit, by using ...
2
votes
2answers
108 views

ImageMagick, stack 100 pictures on each other

I have 300 small pictures. Each picture is a black background and a red dot. I want to add all these pictures together so that all dots form a line. I've tried: magick *.jpg images.gif and it works ...
1
vote
0answers
29 views

Batch converting in imagemagic

I am trying to convert files in imagemagic 6.8.9 on linux . I am restoring an old video and have each frame written as a png file . SOme of these files I have to batch convert to give them an offset -...
0
votes
1answer
111 views

Difference between GIMP Indexed color mode and Imagemagick -colors or -remap

My task is to reduce size of scanned text document into .png with acceptable quality loss. My procedure consist of those steps: Raw images are scanned in tif format and processed by ScanTailor (...
0
votes
0answers
53 views

Convert earth disk image into flat image

I'm trying to process satellite images which are in disk (round / spherical map) format, and convert it to a flat (plane map) format (equirectangular?) so I can then crop it down. I have no issue ...
1
vote
0answers
168 views

Imagemagick 7.0.8-59 Error Message when Compressing PDF files

I am trying to compress a PDF with this Command: mogrify -compress jpeg -quality 50 path/to/file/* When running the Command I get this error message: Error: ICCbased space /N value does not match ...
1
vote
0answers
316 views

How to compress gif effectively to reduce size?

We use gifs for our blog extensively. We used to embed tenor nano gifs(90px height maintaining aspect ratio, used for GIF previews and shares on mobile) in it. Now we wanted to create our own gifs and ...
1
vote
1answer
217 views

How to configure ImageMagick to work with Alfresco on CentOS7?

I installed Alfresco Community 6.1.2 on CentOS7. The section on ImageMagick just says to install it. I used the command: yum install ImageMagick ImageMagick-devel Now, the alfresco.log shows this ...
0
votes
0answers
27 views

how can I put image on A4 page without change its original print size?

I have an image page01.jpg, which has print size 5x7inch identify -verbose page01.jpg Image: page01.jpg Format: JPEG (Joint Photographic Experts Group JFIF format) Mime type: image/jpeg Class: ...
2
votes
1answer
79 views

How to run ImageMagick library scripts in Windows with Cygwin

I have reviewed many posts, but I did not find a solution to run ImageMagick scripts in Windows with Cygwin, despite configuring them following this post. It fails with an error FILE ./0004.jpg ...
0
votes
0answers
65 views

Image preview in linux terminal not showing

I am trying to use fim to quickly preview images inside Putty terminal [runs over ssh protocol] in debian 9 and I get an error message saying "inappropriate ioctl device (not a linux console?) when ...
0
votes
0answers
67 views

animated gif speed, nice in ImageMagick or GraphicsMagic, slow in powerpoint

I have N tiff files. In linux I can do convert -delay 0 -loop 0 *.tiff output.gif In linux, using gm animate *.tif I get a nice smooth rotation at a nice speed. And if I recreate N tiff files to ...
1
vote
1answer
20 views

inlay or composite image into corner of larger image, GraphicsMagic or ImageMagick

(A) I have a rotation of a part so I have 360 tiff files, which I can animate in ImageMagick and also export to an animated gif. This image is 1920x1080, with a black background, there are 360 of ...
1
vote
0answers
877 views

AWS Lambda - node.js - with imagemagick shared lib [closed]

Setup: - AWS Lambda function - Using node.js 8.10 runtime - Using the AWS preinstalled imagemagick lib The error I'm facing when attempting to transform a *.AI file: Error: Command failed: convert: ...
0
votes
0answers
15 views

How to apply a gradient to one edge of an image with ImageMagick?

I'd like to add a white gradient to the bottom of an image with ImageMagick, going from the original image a few tens of pixels from the bottom to totally white at the bottom of the image; ideally, I'...
0
votes
0answers
32 views

Escaping Single Quotes as Well as Dollar Signs in for ImageMagick Within PHP

I have an imagemagick convert command using captions like this: convert -size 100x100 -caption:"' . $mystring . '" I am having two cases where I am having issues when passing the string to the ...
1
vote
0answers
32 views

How to make ImageMagick only replace the file if its size is actually reduced by the conversion?

I need to optimize for size a few thousand jpg files uploaded to my web site by the users. Obviously it's going to be a batch job. My experiments with Google Pagespeed suggestions so far show that ...
0
votes
0answers
112 views

MediaWiki 1.32: Error creating thumbnail: Unable to save thumbnail to destination

I've been running MediaWiki 1.19 on Fedora 24 for ~3 yrs with zero problems. Unfortunately my Linux box died, so was forced to move to MacOS + MediaWiki upgrade. It hasn't been fun. I've finally got ...
0
votes
1answer
1k views

TCPDF ERROR: TCPDF requires the Imagick or GD extension to handle PNG images with alpha channel

I deployed my app and there's a feature to show the document as pdf, but I got this error message: TCPDF ERROR: TCPDF requires the Imagick or GD extension to handle PNG images with alpha channel. ...
0
votes
0answers
103 views

Docker Multi-Stage Build, ImageMagick Stops Working when Moved Image

I'm trying to compile ImageMagick in a gcc image, then move the compiled result to a bash image. This allows me to have a custom configuration for ImageMagick while keeping the image nice and small ...
0
votes
1answer
79 views

How to pad images with imagemagick?

I need to process a set of identically formatted images to get them to conform with my client's website format. I wanted to use ImageMagick's convert or mogrify instead of ffmpeg but I just cant make ...
2
votes
1answer
75 views

Adding whitespace only at the bottom of an image with ImageMagick (-geometry)

I've been doing something like this to add a text label to an image using ImageMagick montage -label "label" -pointsize 36 img.png -geometry 'x1000>' out.png I use the resize option of -geometry ...
1
vote
0answers
375 views

Trouble installing imagick on Debian Stretch and php 7.2

I have a Debian Stretch machine with php 7.2 on which Joomla is running happily. I need now to add the PHP imagick module to handle images. It doesn't matter how I try to install imagick, it never ...
6
votes
1answer
430 views

Using xargs with pdftk

I am using the following code to concatenate all the pdf files in the current directory: find . -iname '*.pdf'|sort|xargs|xargs -I {} pdftk {} cat output union.pdf The first invocation of xargs has ...
1
vote
1answer
842 views

Compress PDF to 2MB or less

I have PDF files, tonnes (~1000) of them for a government report, varying from 600kb to 500MB. Problem is that the portal only allows upload of files up to 2MB. I have Windows (which I find fairly ...
2
votes
0answers
64 views

Why does Imagemagick convert JPGs to larger image size than PNG?

I have a collection of textures for 3D design. Each folder of my collection contains the texture files (normal-map, colour-map, bump-map etc) and a preview file, like so: Now I want to create icon ...
1
vote
0answers
73 views

magick.exe don´t work correctly

set foo=311421232322383538353247425048463555333928324647554314304128474534464839363549444437435238613561311240095442505231573523988539009812811847 magick convert -font Ciphered-Regular.ttf -pointsize ...
1
vote
1answer
145 views

ImageMagick convert is not adjusting MP4 framerate as expected

I'm trying to change the frame rate of a video using ImageMagick’s convert tool. This is the command I am using: convert -delay 1 video1.mp4 video2.mp4 However, no matter what number I put for the ...
1
vote
2answers
120 views

Creating various size thumbnails with filename suffix

I've been battling with this issue for a couple of days and haven't been successful in finding a solution on StackExchange nor any Google searches. I have the following directory structure (...

1
2 3 4 5
9