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

ImageMagick WebP image-hint is not working

I wanted to convert some JPEG and PNG files to WebP format, using ImageMagick. As in ImageMagick WebP Encoding Options page says, we have an image-hint option: image-hint=default, photo, picture, ...
0
votes
2answers
44 views

How do I batch recursive imagemagick JPGs into PNG in a folder?

I saw these posts: mogrify - how do you recurse through subfolders in Windows Using imagemagick to identify all files in multiple subfolders https://stackoverflow.com/questions/30414346/batch-command-...
0
votes
0answers
13 views

ImageMagick: "Unrecognized compose operator (DstIn)"

Trying to apply round borders to nftbg.png after generating the nftbgmask.png (of the same size: 492x246) but ImageMagick isn't recognizing the very commands it recommended for years. Commands used in ...
0
votes
0answers
22 views

Set ImageMagick 'display' command's maximum geometry?

Using ImageMagick's (version 7) display command to display a wide image on my 4k screen, it defaults its display window to 1920 pixels wide. That's only half the width of the screen. If I use the ...
1
vote
1answer
13 views

Split image on printable sheet

I have a logo in png on which I specified the size in centimeter ( 40x45 cm). I need to split that images on two A4 sheet to be able to print it. I tried to use convert but I have to specified the ...
0
votes
1answer
67 views

How to extract pages 3, 4, 5 from a PDF from Windows command line?

Note: I have already found solutions for Linux (see How to extract all pages of one big pdf file?) or solutions with Python, or solutions with freeware GUI tools. How do I extract specific pages from ...
0
votes
0answers
18 views

ImageMagick remove Matte color from image

identify -verbose returns (in part) the following info Background color: white Border color: srgb(223,223,223) Matte color: grey74 Transparent color: black Interlace: None Intensity: Undefined The ...
0
votes
0answers
72 views

Batch converting PNG images to JPG using ImageMagick's Mogrify

I need to batch convert PNG files to JPG at a quality of 90% but also keep the resolution at 72dpi. I came up with this command: mogrify -format jpg -quality 90 -density 72x72 *.png or should I use?: ...
1
vote
1answer
51 views

ImageMagick display WxH+x+y window

In ImageMagick's display, if I press 'c' and start to drag a crop frame, a small box appears at top left showing WxH+x+y for the crop frame. Is there any way that data can be accessed programmatically ...
0
votes
0answers
40 views

ffmpeg - fit multiple lines of text (having different fonts) with auto line wrap and auto font size?

Trying to keep this question to a minimum as in terms of info. Sorry if it's too long and thank you for reading it! I'm trying to make these texts fit (they have different fonts and font sizes) to the ...
0
votes
0answers
26 views

Cropping SVG images on the Command Line

Is it possible to crop an svg on the command line and re-save the file? I've looked into rsvg-convert and thought a combination of the options (specifically zoom, width and height) could achieve the ...
0
votes
0answers
18 views

Compile ImageMagick 6 with custom installation of libjpeg turbo

I have issue when trying to compile ImageMagick 6 with custom installation of libjpeg-turbo. ./configure --prefix=$IMAGEMAGICK_ROOT_PATH CFLAGS="-I/opt/libjpeg-turbo/2.1.1/include" LIBS=&...
0
votes
1answer
58 views

Can I encode a PNG image losslessly to another format and decode it back into an identical file?

I am archiving roughly 150gb of PNG assets. In an effort to increase the compression ratio of the images, I am trying out FLIF (Free Lossless Image Format). This provides an excellent compression ...
0
votes
1answer
17 views

image-magic: combining images to the table

I use convert utility of image-magic to combine several images producing one big summary chart, with all initial images joinded in a single row: convert "${vizu}"/img_*.png +append "${...
0
votes
1answer
45 views

Stitching TIF tiles into large image

I have a list of 25 TIF images (map tiles), each around 400 MiB in size (each small rectangle here): I need to stitch them into one single huge TIF. Is there a command under Linux that can do this? I ...
1
vote
1answer
31 views

Embed image in fixed canvas with Image Magick

I'm looking for a command in Image Magick to take an arbitrary image (of any aspect ratio), and embed it in an image of a fixed size, growing/shrinking the source image as necessary to fit. For ...
1
vote
0answers
20 views

replace black (and proportionally grey) with fixed colour using imagemagick

I have a pdf/png/jpeg which is black-and-white. I want to make it blue-and-white or red-and-white or something-and-white. There are grey tones and I want them to be handled proportionately. In gimp I ...
0
votes
1answer
64 views

Force aspect ratio with Image Magick

I'm looking for a command in Image Magick to force an image into a particular aspect ratio. The result should be the original image with the layer expanded to the correct aspect ratio, with the ...
0
votes
1answer
29 views

Place one image in a larger field with Image Magick

I'm trying to use Image Magick to do this: take one image, shrink it a bit, and place it in a larger white field (of size 1280x720). For example, with Image1 as the source, the end result should ...
0
votes
0answers
143 views

How to Package all Dependencies with GNU Make

I need to make a portable build of ImageMagick so that I can copy and run it on another machine without having to install 3rd party shared libraries. I compiled it by running ./configure --disable-...
0
votes
0answers
17 views

ImageMagick real Alpha channel ON

I'm trying to create the image with Alpha channel from the second image. I have used this cmd command: magick composite Background.tif Alpha.tif -compose multiply -alpha on Result.tif This command ...
1
vote
2answers
107 views

ImageMagick "convert" smartphone JPG to fax-quality document

I was advised on Stack Overflow to post here. TL;DR: Can ImageMagick's convert convert smartphone photographs of document pages to a fax-quality PDF file and shrink the file size by several orders of ...
0
votes
0answers
28 views

imagemagick convert *.png to .mp4 runs, then stops with no error

I have successfully made .mp4 loops out of a small number of .png files with convert -delay 10 -quality 95 *.png output.mp4 However, at say 500 .png's, the conversion proceeds and finishes without ...
1
vote
1answer
81 views

Zoom and morph at the same time using ImageMagick

I have two different maps of the same region: one from a distance, the second a close up. The white retangle in the first image represents the border of the second image. I want to apply two effects ...
1
vote
0answers
151 views

Imagemagick file conversion not working?

I am trying to convert a file from .gif to .bmp using this command: convert -coalesce pixels8.gif out.bmp While doing this i get this error: convert-im6.q16: memory allocation failed `pixels8.gif' @ ...
0
votes
1answer
35 views

how can i output imagemagic image with the name of the containing folder in batch?

FOR /R %%a IN (poster.jpg) DO convert "%%a" -resize 256x256 -background none -gravity center -extent 256x256 "%%~dpna.ico" The current behavior is to grab every poster.jpg file ...
0
votes
0answers
25 views

ImageMagick, PNG and lossless operations

It's probably very stupid question… AFAIK, PNG is lossless format. I suppose, ImageMagick's convert without additional options should make no changes to an image. Then why convert source.png copy.png ...
5
votes
5answers
6k views

How can I convert a JPEG image to a RAW image with a Linux command?

I have a series of JPEG images taken with Canon Powershot to JPEG. How can I convert/transform them to RAW images? Not with a graphical tool, but from the command line! NB : Using raw images to stack ...
-2
votes
1answer
319 views

Having problems merging two images using ImageMagick, the error says that it can't find the images I'm trying to merge

I've tried looking for answers online, but none of the solutions I've found worked. So far I have tried the following three commands; where a and b are the images I want to merge and c is the combined ...
1
vote
2answers
56 views

XSane and ImageMagick automatically installed in my PC

While I was using GIMP, XSane and ImageMagick were automatically installed in my PC? GIMP has probably done it. How did GIMP installed them? GIMP did not even asked my permission. Similarly, few ...
0
votes
1answer
28 views

Cropping sections of an image and composing it into one image

Suppose I have the following image with three equally-sized rectangles, but different letters And I would like to combine them so that there is only one rectangle with all three rectangles layered on ...
0
votes
1answer
59 views

How can the convert command's output be passed/piped instead of saved to a file?

I made a HTML file with images as base64. I started bash-scripting to make a folders images be base64-printed into this html-file. I worked, I share the code: cat html_head.txt > fil.html for i in *...
0
votes
1answer
134 views

Cannot draw with Imagemagick (no images defined)?

I have seen Can't convert PDF into image, because of 'no images defined' error - but that seems related to PDF specifically. Here I try to do something else - just to draw an image, using ...
0
votes
1answer
312 views

Clipping images to a rounded rectangle with ImageMagick

How can I use ImageMagick to convert an image like this to a PNG with a rounded rectangle on a transparent background? Not all images in the set have clean borders, so I prefer to work with a ...
2
votes
1answer
371 views

How to preserve exact colors in Imagemagick svg to png conversion?

Let's take a simple example SVG: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/...
2
votes
1answer
252 views

How can I convert an image with odd numbered dimensions to an HEIC image in ImageMagick 7 using libheif 1.8.0?

Short Version: HEIC images need to have even numbered dimensions. In previous versions of ImageMagick installed by Homebrew, libheif 1.7.0 used a kludge to round down image dimensions to even values ...
0
votes
2answers
223 views

Remove jpeg artifacts for scanned texts

I have a scanned PDF of a textbook, but the PDF is aggressively compressed so lots of JPEG artifacts are present and affects its readability. Example: I tried a variety of method to fix it but the ...
1
vote
1answer
2k views

How to overlay multiple images with position and scale in imagemagick?

Given these two images of size 512x512 with transparent background: circle.png inner.png I'd like to overlay these two images, so that they appear centered and shrink the image size down to say ...
1
vote
1answer
245 views

Why does imagemagick's magick command require two arguments for its -write argument?

I've installed ImageMagick v7.0.10-26 on to Windows and I'm running it from a cmd line. I've not installed convert. This example creates two new image files, modified as specified, from the ...
1
vote
1answer
500 views

ImageMagick - How to avoid overwriting existing files with mogrify?

I have these files under ./: a.jpg b.jpg 256/a.jpg I'm running this command to convert files to 256px: mogrify -path ./256/ -resize 256x256 *.jpg But this command always overrides the existing files ...
0
votes
2answers
345 views

Getting "Invalid Parameter - -fuzz" on ImageMagick convert command on Windows 10

Getting this on the latest version of Windows (via GitHub Actions): Command failed: convert.exe "D:\a\stone\stone\build\image.jpg" -fuzz 20% -fill ""#111111"" opaque &...
1
vote
1answer
39 views

ImageMagick: Crop image into separate images of same area but at an interval along axis?

With either imagemagick or ffmpeg is there a way to crop a single image into separate images (put into an output folder) which are of same area (say 2000x500) but at say 20 pixel intervals down the y-...
0
votes
1answer
127 views

Use imagemagick to output rotated text as png

I need to output a png image that has as content a text label rotated 90 degrees, this is the code I'm trying with convert -size 50X100 -draw 'font Baskerville font-size 24 translate 10,...
1
vote
2answers
357 views

ImageMagick with filenames with hyphens: "unrecognized option"

I am trying to use ImageMagick 7.0.10 on Windows 10 v2004 to crop images to a 256×256 square. After cding into the source folder, which has a file called "-s-u-c-k- .png - (hex-a-decimal).png&...
2
votes
0answers
407 views

Feather edge of image in with ImageMagick in 1 step (existing solution in 3 steps)

I am trying to add a feathered edge to a JPG such that it fades to black at the edge of the image. I was able to achieve this in three steps, but have been struggling to combine it into one step. ...
0
votes
1answer
474 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
325 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
1answer
235 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
118 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 ...
1
vote
0answers
38 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 ...

1
2 3 4 5
9