Questions tagged [imagemagick]
ImageMagick is an open source software suite for displaying, converting and editing raster image files.
9,204
questions
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" ...
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 ...
-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 ...
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 ...
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', '-...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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):
...
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?
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
...
...
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 ...
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....
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 ...
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 ...
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....
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 = ...
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, ...
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%...
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 ...
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 "...
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 ...
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 ...
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:...
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 ...
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
...
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 ...
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 "-...
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 ...
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 ...
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 ...
-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 ...
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 ...
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 ...
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 ...
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:
%...
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 ...
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 ...
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 ...
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 ...
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 ...
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/...
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 ...
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 ...
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 ...
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 ...