Questions tagged [imagemagick]
ImageMagick is an open source software suite for displaying, converting and editing raster image files.
484
questions
-1
votes
1
answer
36
views
How to set up lossless settings for convert from Imagemagick ran on colored images with -compress JPEG2000/WebP for PDF/TIFF output?
Continuing Lossless or near lossless compression options for PDFs containing grayscale with JPEG2000? and Which compression modes of convert of imagemagick are lossless (with -quality 100)?, which ...
0
votes
1
answer
51
views
Which compression modes of convert of imagemagick are lossless (with -quality 100)?
On my Debian 12,
$ convert -list compress
B44A
B44
BZip
DXT1
DXT3
DXT5
Fax
Group4
JBIG1
JBIG2
JPEG2000
JPEG
LosslessJPEG
Lossless
LZMA
LZW
None
Piz
Pxr24
RLE
RunlengthEncoded
WebP
ZipS
Zip
Zstd
Which ...
1
vote
1
answer
38
views
How to layer photos on top of watermark with ImageMagick? [closed]
I am a photographer working on a project which in the end will result in some photos I'm going to post on social media.
But in doing this I want to format some photos with a template I made to make ...
0
votes
1
answer
41
views
File Size increases on basic pdf -> raster image -> pdf roundtrip with `pdfimages` + `magick`
Why do I not succeed into making this simple pdf → raster image → pdf round-trip file-size-stable?
$ # Get original file (8KB, just extracted from my scanner).
$ curl "https://nextcloud.mbb.cnrs....
0
votes
1
answer
442
views
PowerShell, ImageMagick, GhostScript to extract each page of a PDF as a separate image
I'd like to take a PDF and extract each page as an image. I've been able to do this with ImageMagick and GhostScript, but the results are incredibly bad quality. I've tried many different output ...
1
vote
1
answer
183
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,...
1
vote
1
answer
84
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 ...
0
votes
2
answers
365
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 ...
1
vote
2
answers
2k
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", ...
2
votes
2
answers
122
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 ...
1
vote
0
answers
281
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 ...
3
votes
1
answer
75
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. ...
0
votes
1
answer
444
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 -...
0
votes
2
answers
85
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 ...
1
vote
2
answers
503
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 ...
4
votes
1
answer
278
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:
...
2
votes
1
answer
377
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)
....
0
votes
1
answer
152
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 ...
2
votes
1
answer
384
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 ...
1
vote
0
answers
66
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 ...
0
votes
2
answers
149
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 ...
0
votes
1
answer
354
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....
0
votes
0
answers
35
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 ...
10
votes
4
answers
3k
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 ...
1
vote
1
answer
117
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 ...
8
votes
1
answer
942
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 ...
0
votes
0
answers
401
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 ...
2
votes
0
answers
319
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 ...
4
votes
1
answer
8k
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 ...
0
votes
1
answer
201
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 ...
0
votes
0
answers
208
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 ...
0
votes
1
answer
447
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 ...
2
votes
1
answer
1k
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 ...
1
vote
0
answers
138
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 ...
2
votes
1
answer
2k
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 ...
1
vote
1
answer
1k
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 ...
0
votes
2
answers
237
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 ...
2
votes
1
answer
686
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 ...
4
votes
1
answer
614
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 ...
2
votes
0
answers
165
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 ...
2
votes
1
answer
155
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 ...
0
votes
1
answer
177
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 ...
0
votes
0
answers
515
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 ...
2
votes
1
answer
94
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, ...
0
votes
1
answer
229
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....
0
votes
1
answer
154
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 ...
0
votes
1
answer
3k
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 ...
0
votes
0
answers
133
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 ...
0
votes
0
answers
23
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.
0
votes
0
answers
105
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 ...