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

ImageMagick recursive delegate script

We use ImageMagick for processing all kind of image files. For raw files, we're using a custom delegate raw.sh and we've mapped it in delegates.xml file as <delegate decode="dng:decode" ...
Kishore T's user avatar
0 votes
0 answers
5 views

What options in policy.xml in ImageMagick should I change?

I have the following policy.xml file for ImageMagick 6. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policymap [ <!ELEMENT policymap (policy)*> <!ATTLIST ...
Igor Mironchik's user avatar
-1 votes
0 answers
30 views

Segmentation error when using ImageMagick [closed]

I'm encountering a segmentation issue when using ImageMagick within a Docker Alpine container while trying to read an image blob. I'm using a Go function : GetImageBlob(). Has anyone faced a similar ...
sid's user avatar
  • 83
1 vote
1 answer
23 views

Pixels contain different values than what is exported?

I am using Magick.NET to read and write exr files and transfer data to an external encoder. I noticed that the exr files Imagemagick writes contain the correct values. When I try to read the pixels ...
Raildex's user avatar
  • 3,477
0 votes
0 answers
27 views

ImageMagick Error : CalledProcessError: Command returned non-zero exit status 1

I am trying to make gif using matplotlib and imagemagick but got error message below CalledProcessError: Command '['C:\\Program Files\\ImageMagick-7.1.1-Q16-HDRI\\magick.exe', '-size', '640x480', '-...
No Yeah's user avatar
  • 61
0 votes
3 answers
44 views

ImageMagick - Transform Outline Image to Perfect Black And White, WIth No Noise

I am looking for an image magick command that will help me transform black and white outline images (doodle sketches) to perfect white background and perfect lines (even no antialiasing) that are ...
BlasterGod's user avatar
0 votes
1 answer
25 views

I want to display two different font sizes of text in a composite image

Why do I want to display two different font sizes of text in a composite image, but only the first is displayed? convert \( -resize "1000x1000^" -blur 50x5 "https://example.com/origin....
user3474300's user avatar
1 vote
1 answer
22 views

Merging two images with ImageMagick Convert -combine option Changes Colors

I am trying to merge two images into one. One image has a grid: and the other image has data points: using the command: convert -combine -verbose -clamp Boys_BMI.png Ipc2eAOT.png new.png I get this ...
Marionette_66's user avatar
1 vote
1 answer
26 views

How to convert a monochrome image to a nxm array of 0 and 1 using imagemagick?

I converted a color jpeg image to a monochrome image using convert image.jpg -monochrome monochrome.jpg Now I would like to convert the monochrome.jpg to a text file containing a nxm array with 1s ...
kovac's user avatar
  • 4,967
0 votes
1 answer
18 views

With ImageMagick it possible to take an image as input, and split it out into images of just its colors?

I included an example image of a smile. I want to take that smile as input, and output three PNGs, where each is a separate color in the image. So for that smile it would have a yellow PNG of just the ...
Doug Smith's user avatar
  • 29.7k
0 votes
0 answers
34 views

How to create zoomed-in views of an image

Environment: Windows 10 / software: Irfanview, Imagemagik, R For a PPT presentation, I'd like to create several (3-4) images obtained by zooming into a base image, keeping the image size the same and ...
user101089's user avatar
  • 3,768
0 votes
1 answer
19 views

ImageMagick kmeans with alpha transparency

I want to apply kmeans to an image with an alpha mask. It should only work on the colors that are visible. I'm hoping to one-line it. Starting image: Naively apply kmeans (whoops, all one color): ...
user2183336's user avatar
0 votes
1 answer
37 views

Pandoc: Convert Word to LaTeX, with all images as .png Files?

How do I convert a Word document to a LaTeX document, while all images in the final LaTeX document should be .png files with a DPI of 300?
Dr No's user avatar
  • 118
0 votes
1 answer
29 views

export tif layers with offset

Take a multilayered tif image and describe it: magick identify multilayered.tif Here are the layers: multilayered.tif[1] TIFF 476x620 476x620+747+90 8-bit sRGB 236.532MiB 0.040u 0:00.039 ... ...
7Tonin's user avatar
  • 71
1 vote
1 answer
16 views

How can I complete a full circle polar distort with ImageMagick CLI?

I am using ImageMagick (Windows v7.1.1-15) CLI and want to create a polar image from a rectangular map image. Here is the command I'm using, but you'll see that it is missing a small arc. Any ...
Guy Savoie's user avatar
1 vote
1 answer
40 views

bash: an option list for convert of Image Magic

I am using convert utility of Image-Magic package integrated into my bash script with the aim to create a 10 x N table conposed of many images sorted into 10 types: convert \( "${output}/type1....
James Starlight's user avatar
0 votes
0 answers
26 views

How do I install ImageMagick on mac os 14.0 Sonoma?

So as Mac OS 14.0 Sonoma is still in beta the brew install command fails brew install imagemagick . Is there a way to make it work? Warning: You are using macOS 14. We do not provide support for this ...
Mariano Rebord's user avatar
0 votes
1 answer
30 views

Imagemagick crop doesn't seem to be respecting gravity center

bulk cropping PNG images which were previously rotated with Imagemagick using convert thistle-7gn.png -rotate 75 thistle-7gn-75.png this command magick thistle-7gn-75.png -gravity center -crop ...
spinhead's user avatar
0 votes
0 answers
18 views

Why does graphicsmagick enlarge the image size when rotating it, but imagemagick does not?

GraphicsMagick command as below: convert cute_dog.jpg -rotate 90 -quality 92 cute_dog_rotate_gm.jpg ImageMagick command as below: convert cute_dog.jpg -rotate 90 -quality 92 cute_dog_rotate....
Luooke's user avatar
  • 13
0 votes
0 answers
15 views

ImageMagick read pdf ignores Width

I'm trying to read a pdf with ImageMagick, by using the following code: using (var images = new MagickImageCollection()) { var settings = new MagickReadSettings { ColorSpace = ...
ʞᴉɯ's user avatar
  • 5,376
0 votes
1 answer
43 views

Converting a SVG file to a PDF or JPG with the embedded base64 CSS fonts

I have a bunch of .svgz files I need to convert to PDF, or, if that's not possible, to JPG and then to PDF. All these files use custom fonts that are embedded in the file, using @font-face base64, ...
SaltyIsaac's user avatar
1 vote
2 answers
68 views

Overlapping pixels with convert -crop

Suppose i have a long chat screen which i want to split into the chunks. But i want overlapping between chunks for editing them after with Gimp. I use right now like this: convert chat.png -crop 100%...
user avatar
0 votes
0 answers
47 views

Can't create BMP image with ImageMagick inside Snap container

I have a working C code that uses for ImageMagick for creation of BMP files. For unknown to me reason this code doesn't work inside Snap container. Minimal code snippet for testing if creating a BMP ...
vict's user avatar
  • 158
1 vote
1 answer
27 views

ImageMagick: How do I reuse one single image to overlay it multiple times

I would like to overlay the same image at different random positions multiple times (up to thousands of times) in ImageMagick with command-line. convert -size 800x800 xc:transparent ^ -draw "...
tobidude's user avatar
  • 480
0 votes
0 answers
26 views

Is there a way to bold a specific letter in text using ImageMagick?

I have a question about ImageMagick. I was creating a video with Moviepy (ImageMagick's Wrapper) and I wanted to bold one of the letters in the middle of the text. However, such a feature did not seem ...
Creeper Saviour's user avatar
0 votes
2 answers
48 views

Convert all files in folder

I'm creating a batch script, which will allow me to change any type of files to another. But i have problems with getting the file names from folder. %%~nxi contains file name, but i cant write it to ...
Quark-Coder's user avatar
0 votes
1 answer
20 views

ImageMagick fill color with pattern

I want to replace specific colours with some patterns using ImageMagick. I have a simplified example of what I would like to do. Here I would like to replace the red colour with the pattern pattern:...
giac's user avatar
  • 4,261
0 votes
1 answer
27 views

Reduce PNG bytes by manipulating color type - not having success with ImageMagick

I am trying to see if I can reduce the bytes of a PNG by changing the png color type. I am trying to keep the dimensions as high as possible (100 or 150 ideally). The images are not complex and I ...
lcj's user avatar
  • 1,355
0 votes
0 answers
47 views

TiffetchNormalTag exception

We're using below version on our RHEL 8 VM: Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher Delegates (built-in): jpeg lzma tiff zlib ...
USER's user avatar
  • 11
0 votes
0 answers
25 views

no decode delegate for this image format `' @ error/constitute.c/ReadImage/575

PHP ImageMagick giving error for a corrupted pdf file. Pdf opening with reader but ImageMagick saying "no decode delegate for this image format `' @ error/constitute.c/ReadImage/575". With ...
Nikunja's user avatar
0 votes
1 answer
52 views

imagemagick Obtain a rectangle by two corners and a point on the opposite edge

Suppose I have a scanned image. The green part is what valid for me, and I would like to obtain that part from the oringal. Right now, I am doing a lot of manual calculation and then using "-...
sofname's user avatar
  • 429
1 vote
1 answer
49 views

Is there a way to display GIFs in Winforms without having them saved on the system?

I'm currently creating a program that takes an input GIF, places text on it, and outputs it as a new GIF using the ImageMagick library. My program is perfectly operational when the output GIF is saved ...
BTubbs200's user avatar
0 votes
1 answer
15 views

Imagemagick treating each word of my caption as an image

I am trying to create a caption in imagemagick using the following command: convert -background white -fill black -font Agency-FB -size 465x247 caption:'This is a test' test.png And am receiving the ...
ccarlson's user avatar
0 votes
0 answers
33 views

Can a WebP file contain multiple images like TIFF?

TIFF has multipage capability to store more than one image. Does WebP (or other bitmap formats) have this ability as well? I'm not talking about animations - the use case would be to store hires lossy ...
lmoly's user avatar
  • 101
-1 votes
2 answers
42 views

Converted images to pdf are too vibrant

When I do img2pdf input.jpg -o output.pdf , the output pdf is too vibrant, and not a one-to-one with the image. I also tried it with ImageMagick and convert input.jpg output.pdf is also too vibrant. I ...
voltaire's user avatar
0 votes
1 answer
69 views

Calculate real DPI of images in a PDF

This is breaking my brain. I'm setting up a process to OCR mutipage PDFs with tesseract. I'm extracting the native images with pypdf, running tesseract on each page with PDF output, and joining the ...
user2509710's user avatar
0 votes
0 answers
20 views

Imagemagick - add horizontal rules at variable y coordinates

I have a color scanned multipage pdf with a table of records, the table is separated into rows and columns but there is only a solid line separating the columns, whereas the rows are separated by an ...
Dasa's user avatar
  • 297
0 votes
1 answer
37 views

How to use imagemagick compare so that the order does not matter?

I'm using the compare command from imagemagick in my scripts to find out whether two images are identical or not. I recently found out that the order of the arguments to compare matters. Here are two ...
josch's user avatar
  • 6,726
0 votes
0 answers
18 views

Converting .ps file to .jpg file

I tried to convert .ps file which replace in my home directory using convert intensity.ps intensity,jpg but i got some error Error: /undefined in Standard+_Encoding Operand stack: Execution stack: %...
Yoga Dharma's user avatar
0 votes
0 answers
31 views

ImageMagick PHP | Dynamic conversion from RGB to CMYK

I'm trying to make an algorithm that converts an image from RGB to CMYK and that modifies each CMYK channel with a given percentage. For example: I upload my RGB image and I say, convert it to CMYK ...
giovanni13696's user avatar
0 votes
1 answer
90 views

WASM (ImageMagick) based code blocks Deno Server

Below in my first example is a simple web server using deno's new serve api. If you open up curl and run curl -X POST -H "Content-Type: application/json" http://localhost:8000 quickly in two ...
ThomasReggi's user avatar
  • 55.3k
1 vote
0 answers
59 views

Python Wand auto rotate and deskew not working

I have a medical form page that is not properly oriented (it's rotated 90 degrees clockwise) and it has text skew. I want to use Wand methods to auto orient the page to be human legible, and also to ...
eduardosufan's user avatar
  • 1,453
0 votes
2 answers
41 views

How to fix nodejs gm(GraphicsMagicks) text display bold randomly

I use nodejs gm drawText function to add text to images based on coordinates. Everything is good except the text displayed in bold randomly (red border marked in the below image). I don't need to show ...
Evan's user avatar
  • 190
0 votes
1 answer
33 views

How can I overlay a RGB data image onto a mono data image using imagemagick?

I have some satellite imagery data from Himawari 8 - one image is a mono image which is 500 metres per pixel image resolution and the other image is a visible RGB image which is 1km per pixel ...
Mike Manning's user avatar
0 votes
0 answers
15 views

Imagemagick mogrify to convert images to 1:1 format and put them in a 1x1 folder in each subfolder of a directory

How to write code for cmd windows, using imagemagick mogrify to convert images to 1:1 format and put them in a 1x1 folder in each subfolder of a directory. /catalog/folder/1/1.jpg ->/catalog/...
MisterEnot's user avatar
0 votes
0 answers
61 views

Use ImageMagick in Unity MacOS

I'm trying to use ImageMagick (latest version) with Unity on MacOS. I placed 4 dll in the Plugins folder : Magick.NET-Q16-x64.dll Magick.NET.Core.dll Ghostscript.NET.dll System.Drawing.Common.dll In ...
HugoD's user avatar
  • 46
0 votes
1 answer
43 views

Removing the entire background from a mathematical formula image

Consider the following image: I would like to remove the entire background (everything that does not belong to the) to be left only with the integral. My purpose is to make it easier to get the ...
PaulS's user avatar
  • 21.3k
0 votes
0 answers
46 views

how do I merged an image into another image

enter image description here Hello, StackOverflow community! I am currently embarking on a project that involves image merging. Specifically, my aim is to develop a feature where the user can upload ...
heroku use's user avatar
0 votes
1 answer
38 views

imagemagick convert does not produce alpha gradient for specific image

I'm using convert to generate images with a fade gradient, converting images like this: to images like this (note the fade at the bottom): The source images (e.g., first image above) are PNGs ...
richarddmorey's user avatar

1
2 3 4 5
185