Questions tagged [imagemagick]
ImageMagick is an open source software suite for displaying, converting and editing raster image files.
125
questions with no upvoted or accepted answers
7
votes
1
answer
718
views
Converting images of different dimensions into a gif with maximum dimensions
I have a set of images for an animation, but not all of the dimensions are the same. Some may be 100x100, others might be 99x105, a few with 110x100, and so on.
If I did a simple
convert *.png ...
4
votes
1
answer
1k
views
Using imagemagick or gifsicle to output GIF with specific filesize?
I have been following this online guide to convert a small video clip into image frames, then combine them together into a single animated GIF.
The problem I'm having is that each GIF tends to be ...
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. ...
3
votes
0
answers
852
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' @ ...
3
votes
1
answer
2k
views
How to compress gif effectively to reduce size?
We use gifs for our blog extensively. We used to embed tenor nano gifs(90px height maintaining aspect ratio, used for GIF previews and shares on mobile) in it. Now we wanted to create our own gifs and ...
3
votes
0
answers
517
views
How to obtain a version of ImageMagick compiled for OpenCL (Linux)
For reasons I do not understand, ImageMagick requires a special compilation to make use of OpenCL drivers on the host machine.
Does anyone know of a place where I can obtain a Linux version compiled ...
3
votes
1
answer
1k
views
transparent gradients with graphicsmagick
I'm trying to create a gradient that goes from transparent to some color. With imageMagick you can do that with (taken from the documentation):
convert -size 100x100 gradient:none-firebrick ...
3
votes
1
answer
531
views
Imagemagick batch converting memory overload
I must to convert about billion of images from jp2 to jpg...
I create such .bat
for /d %%d in (*) do (
for %%f in ("%%~d\*.jp2") do (
convert -limit memory 0 -limit map 0 "%%~ff" -quality 25 "%...
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 ...
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, ...
2
votes
0
answers
3k
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?:
...
2
votes
1
answer
1k
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
0
answers
867
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.
...
2
votes
1
answer
343
views
How to run ImageMagick library scripts in Windows with Cygwin
I have reviewed many posts, but I did not find a solution to run ImageMagick scripts in Windows with Cygwin, despite configuring them following this post. It fails with an error
FILE ./0004.jpg DOES ...
2
votes
0
answers
148
views
How to make ImageMagick only replace the file if its size is actually reduced by the conversion?
I need to optimize for size a few thousand jpg files uploaded to my web site by the users. Obviously it's going to be a batch job.
My experiments with Google Pagespeed suggestions so far show that ...