Questions tagged [imagemagick]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

How can I allow ImageMagick to convert a grayscale png to an ico file without errors?

I have a grayscale PNG, and when trying to use ImageMagick (Version 7.1.1-28) to create an ICO file it always gives me the following warning: $ convert favicon.png -define icon:auto-resize=16,32,48,64,...
Dan Herbert's user avatar
  • 1,791
0 votes
1 answer
23 views

Can ImageMagick make my grayscale image brighter by "compressing" the black-to-white range to dark-gray-to-white?

I have a grayscale image with pixels ranging from black to white. I'd like to make it brighter by moving the "black floor" up, and scaling the other pixel intensities. I'd prefer linear ...
Anna's user avatar
  • 247
0 votes
2 answers
84 views

Why is this PNG converting to black JPG in imagemagick?

I swear this image was properly converting to a white-background JPG with black line art. Here is the original PNG (in case SE changes it when you upload). Here is what it looks like: But this is the ...
Lance's user avatar
  • 375
1 vote
1 answer
122 views

How to convert Samsung's motion photos to still photos?

I've taken a bunch of photos on my Samsung Galaxy phone after inadvertently activating the "motion photo" mode, which captures a short video clip before and after the "click", ...
Xavier Poinas's user avatar
2 votes
2 answers
99 views

How to prevent large file size in JPEG-PDF roundtrip conversion?

TL;DR: File size doubled in roundtrip conversion between JPEG and PDF. Tools used : poppler and imagemagick I am doing this Extract images from a pdf containing only images (scanned document), via ...
Abdullah Ibn Fulan's user avatar
0 votes
0 answers
79 views

How to fix error unable to read font in ImageMagick/Debian?

I'm running ImageMagick in WSL Debian and Ubuntu. I'm trying to write some text with ImageMagick but I getting font errors in both WSL linux versions: $ magick -background lightblue -fill blue -font ...
Rasec Malkic's user avatar
3 votes
1 answer
45 views

Is there an equivalent for ImageMagick’s “-shear” command in FFmpeg?

FWIW, I must run this on Windows platform. I have a series of videos shot in identical conditions (mounted camera shooting trains), all exhibiting the same rolling shutter effect when train passes. ...
user2349195's user avatar
0 votes
1 answer
175 views

Converting WebP files to GIF doesn’t work as expected. Resulting GIF is glitchy

I run command to convert WEBP into GIF but it's a bit "glitchy". Do I miss something? Debian: 11.8 ImageMagick: 6.9.11-60 Q16 x86_64 2021-01-25 convert -delay 10 sample.webp -loop 0 -...
Zakikun's user avatar
0 votes
2 answers
76 views

Some image files are deleted during output/moving with batch file

I've been having an issue for a while now with various versions of a batch file script I have been using to assist with listing items on my WordPress/woocommerce page. The script seems to occasionally ...
MonkeyNoodles's user avatar
1 vote
1 answer
194 views

Preserving transparent colors when converting svg to png

I have an SVG file that contains transparent colors like "#FF000080". When I convert the SVG to PNG using ImageMagick, the transparent colors are converted to black. (Any colors without an ...
user avatar
4 votes
1 answer
198 views

Replacing a color using -transparency regardless of existing pixel opacity, using ImageMagick

I have a colorful image that has alot of existing transparent background, but also a few blocks of hot pink rgb(255,0,255) color I want to additionally become transparent. I'm doing so like this: ...
Jamin Grey's user avatar
2 votes
1 answer
173 views

Make a GIF image with an exact given byte size

For a specific task (replace an image inside a firmware without any data offset shifting), I need to create a GIF file of size 409x240 pixels of exactly 6449 bytes: offset 0-5: GIF89a (magic string) ....
Basj's user avatar
  • 1,727
0 votes
1 answer
79 views

How to composite images with offsets and scaling into a single image?

I would like to use imagemagick to create a mosaic. I have a list of images along with their individual offsets and scales, for example: a.jpg, translate to 0,0 and scale to 100% b.jpg, translate to ...
Ana's user avatar
  • 1,651
2 votes
1 answer
209 views

Best ImageMagick parameters to upscale image containing text

What are the best ImageMagick parameters to upscale an image that contains text in Latin alphabet? Take this image as example: I did some experimenting, for example: magick convert in.png -filter ...
robertspierre's user avatar
1 vote
0 answers
49 views

Is it possible to separately run image magick commands on certain pages in a pdf documents, then combine it all into one pdf?

I'm a student and have exams coming up. I'm trying to remove solutions from some online resources I've found to study from. The solutions were all written in red text under Short Answer (SA) questions ...
Musa Khattak's user avatar
0 votes
2 answers
125 views

Merging a folder of 34,000 images in Photoshop

I have a folder of 34,000 images (all the exact same size) and I would like to layer them all on top of each other, doing something equivalent to Photoshop's "Darker Color" layer blending ...
dongle's user avatar
  • 121
0 votes
1 answer
307 views

ICO of 32-bit images

Requirement I'm using this shell script to create an ICO file to fulfill this requirement: Icons should be Windows .ico files and contain 32-bit images in the following sizes: 16, 24, 32, 48, and 256....
Megidd's user avatar
  • 271
0 votes
0 answers
31 views

ffmpeg Is not compitable with minikube

I have one pod in minikube which is for video editing task and I am using the moviepy library. There is issue occurring Failed to read file duration and I debug the deep down code and found the cause ...
Nikhil Shingadiya's user avatar
9 votes
4 answers
2k views

How to resize an animated webp?

I want to be able to change the size of a dynamic webp. Sample picture. I found this website to do just that. So how can I implement something similar in my own program? I tried using ImageMagick7 or ...
shsf's user avatar
  • 103
1 vote
1 answer
90 views

Is it possible to input a HSB color value and get its corresponding HEX color code as an output?

Let's say I have a colour in HSB format 120,100,100 and I would like to get its corresponding HEX code, which is 00FF00. Is it possible to achieve this with ImageMagick? Perhaps Something like: Magick ...
Ralf_Reddings's user avatar
8 votes
1 answer
899 views

How to create PocketBook-compatible BMP files using ImageMagick?

PocketBook 611 is a black-and-white e-book reader. PocketBook 611 (and models of similar age, before touch displays were introduced) uses a very specific BMP format for its so-called "Power-off ...
andrybak's user avatar
  • 687
0 votes
0 answers
291 views

What can I do to fix ImageMagick in Catalina?

I tried to check installations of ImageMagick then brew. In a classic case of knowing just enough to cause trouble the diagnoses are more complicated than I know how to treat. Hoping for a second ...
Pamelane's user avatar
2 votes
0 answers
238 views

How to process images of documents to look like a scan?

Assume that I have photos of several text documents and presentation slides captured using my smartphone camera. Due to uneven lighting, these photos have color and brightness gradients. Also, the ...
user's user avatar
  • 21
3 votes
1 answer
6k views

How do I print an image to a fixed size over multiple pages?

I want to print an image that is 52x44 cm using letter sized pages in Windows 10. So it's similar to this question, but I need to print an image that is larger than one page. Presumably it will take ...
Aaron Kreider's user avatar
0 votes
1 answer
140 views

is JPEG artifact in any case unavoidable when increasing image size?

When I increase the image size to 200% or higher , the JPEG artifacts (ugly dots around sharp edges) are clearly visible. Same goes for PDF files that are lossily compressed. Are there no compression ...
medukia's user avatar
  • 33
0 votes
0 answers
187 views

Rotate images with biggest side (image width) to be the vertical side

Rotate images with biggest side (image width) to be the vertical side You can see the problem here: Imagemagic / gimp and other tools fails to orient photos concisely. I am searching for a tool that ...
Estatistics's user avatar
0 votes
1 answer
321 views

How do I batch-convert files from an input list using ImageMagick 'convert'?

I'd like to use ImageMagick's convert command to convert a batch files from GIF to PNG format. I'm using Ubuntu 22.04. I have a file gif-list containing the names of files in GIF format, one per line ...
Borea Deitz's user avatar
  • 1,068
2 votes
1 answer
774 views

ImageMagick Mogrify Compress Images Recursively

Windows 10. ImageMagick v7.1.0-62 I need to compress and optimise a lot of .jpg images using ImageMagick. I am using the following command, which is working (this overwrites the original files which ...
jonboy's user avatar
  • 231
1 vote
0 answers
104 views

adding labels/captions with imagemagick

I'm trying to make a script that will add the file name to a label under the images. I found out I can use ImageMagick on linux to do that, but I can't figure how to do it right. The documentation ...
guymii's user avatar
  • 21
1 vote
1 answer
1k views

imagemagick commandline resize to fixed width/height keeping scale

I am currently using PHP, but its resampling is not good enough for my needs. Suppose I have an image 200x200. I need it resize to 100x50. Then I need it resized scaled down cleanly as possible (here ...
Tom's user avatar
  • 419
1 vote
1 answer
844 views

How do I properly downscale an image from 300 dpi down to 72 dpi using imagemagick?

As the title says, I want to know the proper way to downscale my image that is originally 300 dpi down to 72 dpi while still maintaining the same quality of the image. By quality, I don't mean the ...
user9564371's user avatar
0 votes
2 answers
170 views

How can I merge/compose/recombine an A3 image from 3 A4 images?

That is not the first time that I have following problem. I must scan an A3 page but my scanner can only scan A4 pages. So, I scan 3 A4 images as in following example. Now, how can I AUTOMATICALLY ...
schlebe's user avatar
  • 247
2 votes
1 answer
566 views

Replace green pixels with gray using imagemagick `convert` command

I want to replace green pixels in this png file with gray ones. Based on official examples, I tried the command below and got this result filled with white not gray. It becomes white even if other ...
solzard's user avatar
  • 23
4 votes
1 answer
525 views

How do I produce a PDF from imagemagick with Fast Web View enabled?

I collate a bunch of images into a single PDF using ImageMagick. While this works properly, when I open the PDF on the browser and go to properties, it's showing that Fast Web View is not enabled for ...
user9564371's user avatar
2 votes
0 answers
140 views

How can I use a widely-available cross-platform command line program to render a string containing emoji [closed]

I would like to use a widely-available command line program, the lighter-weight the better, to render a string containing emoji into a raster image. The rules are: must work on a minimum of OS X and ...
llimllib's user avatar
  • 121
2 votes
1 answer
121 views

Modify gamma of a PNG image without modifying pixels

How to do the following "conversion"? Input: A PNG image which claims it is encoded in sRGB, but in-fact is linear Output: A PNG image with the same pixel values the input, but instead ...
user877329's user avatar
0 votes
1 answer
153 views

Combining 2 ImageMagick commands be into one script

What I have is a layer of black text, a layer of grey text, and a layer of colorized text, each letter is a different color, and I want to offset the grey layer 3,3 and the colorized layer 6,6. So I ...
Christopher's user avatar
0 votes
0 answers
442 views

How to open a raw image?

I've installed Gimp via brew on my Mac. This is the error when trying to open a raw image: I've installed ufraw (also via brew). That is supposed to integrate with Gimp, but I didn't notice any ...
user1785730's user avatar
2 votes
1 answer
81 views

How would I transform a page in-place in a PDF programmatically, e.g. with imagemagick/convert

I have a multi-page PDF file (7 pages), in which 1 page (page 6) must go through 2 transformations (I think): It must be cropped. It must be scaled. And then it must be saved again as PDF, ...
Erik's user avatar
  • 123
0 votes
1 answer
178 views

Controlling imagemagick output filenames with "printf"-style formatting directives

According to stuff I've read, I should be able to do: convert -density 200 foo.pdf -quality 90 'output-%3d.jpg' to get a set of JPG files with names like "output-001.jpg", "output-002....
Pointy's user avatar
  • 891
0 votes
1 answer
138 views

Reported PPI of jpeg image conflicts between Imagemagick & GIMP

I have a jpeg image and I wish to find out the image resolution in PPI before sending it to someone. I open it in GIMP 2 (on Ubuntu Studio 20.04) and look at the image properties. It reports a ...
Joe99's user avatar
  • 1
0 votes
1 answer
2k views

Convert PPM to PNG

I recently finished the raytracing tutorial "Ray Tracing in One Weekend", which outputs to PPM. I'm trying to convert to PNG to share my results, but all the solutions I've tried have thrown ...
FiveTD's user avatar
  • 3
0 votes
0 answers
114 views

Merge the multipage tiff in subfolder to another output folder as single image

Iam trying to merge the multipage tiff in subfolder to another output folder as single image. the base command is convert f:\input*.tif f:\output\image1.tif My question : Iam getting no output. What ...
Travelz Online's user avatar
0 votes
0 answers
19 views

How to slim the thick fonts in Imagemagik

I was trying to slim down the thick fontsthick image to "3033 Elgin Avenue" something as keyed here. Any suggestion.
Travelz Online's user avatar
0 votes
0 answers
96 views

textcleaner not found error on powershell

Iam trying to run the textcleaner script on windows powershell(bash) textcleaner.sh -g -e normalize -f 50 -o 10 -s 10 "F:\Testing\input\input.tif" "F:\Testing\output\input.tif" I ...
Travelz Online's user avatar
2 votes
1 answer
4k views

Converting JPEG/PNG to TIFF with Imagemagick format results in a file size about 6.5 times bigger

I am told to use TIFF format for my raster images (originally I have both JPEG and PNG images) according to the editorial office of the journal I am submitting a research paper to. I tried ImageMagick ...
Amazigh_05's user avatar
1 vote
0 answers
98 views

ImageMagick: target-size is ignored?

Original image is 3.7M, this command produces file size of 2.7M, but I want 2M: convert in.jpg -define webp:target-size=200000 out.webp Also tried target-size=2MB. Related documentation: https://...
Vitaly Zdanevich's user avatar
0 votes
0 answers
478 views

How to generate a C array out of an image to be viewed on an eInk display?

I'm trying to draw an image on a 480x280 2-color ePaper display from Waveshare. I control the display using a RaspberryPi Pico. First I make sure that the image is 480x280. Then I convert it to a byte ...
Salahuddin's user avatar
0 votes
2 answers
2k 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-...
coldreactive's user avatar
1 vote
1 answer
200 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 ...
dev dev's user avatar
  • 13

1
2 3 4 5
10