Questions tagged [imagemagick]
ImageMagick is an open source software suite for displaying, converting, and editing raster image files.
278
questions
281
votes
5
answers
106k
views
Trouble with batch conversion of .png to .pdf using convert
convert /home/bill/TempScan/*.png myfile.pdf
gives error message:
convert-im6.q16: not authorized `myfile.pdf' @ error/constitute.c/WriteImage/1037.
Any help would be appreciated!
111
votes
4
answers
156k
views
convert images to pdf
I have saved multiple images from google books. I wanted to convert them to a single pdf file, where in I need some inputs. The below two images(one png and one jpeg) are two continuous pages.
first ...
98
votes
8
answers
112k
views
I'm getting the message: "The following security updates require Ubuntu Pro with 'esm-apps' enabled" when updating Ubuntu 22.04
I use the package texlive-full, which installs imagemagick and other related packages. When I check for updates, I get this message:
The following security updates require Ubuntu Pro with 'esm-apps' ...
83
votes
5
answers
187k
views
how to install imagemagick for php7 on ubuntu?
well, just after upgrading my Ubuntu and therefore moving to php7, I seem not to be able to install imagick extension for php using the same old command
sudo apt-get install php5-imagick
I get this ...
83
votes
1
answer
95k
views
How to crop borders/white spaces from image?
I have a lot of images which have white borders around them. I would like to crop those borders all at once, preferably from command line. I believe that it can be done with ImageMagick, but I couldn'...
66
votes
2
answers
78k
views
imagemagick - convert not allowed [duplicate]
I have multiple *.jpeg pictures I like to merge into a single *.pdf file like so:
convert Blatt1.jpg Blatt2.jpg Blatt3.jpg Blatt4.jpg out.pdf
I am prompted with the following exception:
convert: ...
58
votes
4
answers
62k
views
how can I resize an animated GIF file using ImageMagick?
I want to resize such an animated GIF file do.gif
If I do convert do.gif -resize 24x24\! do-24.gif I get it resized in do-24.gif but not animated
How to resize it right way to get the same ...
51
votes
19
answers
65k
views
Is there a better way to redact a PDF?
I had to print a couple of PDFs recently to send to someone, but I wanted to redact (black out) a couple small bits of text.
A quick google search didn't turn up any tools for this specific purpose, ...
46
votes
3
answers
50k
views
ImageMagick:convert-im6.q16: no images defined
According to this question, How can I convert a series of images to a PDF from the command line on linux?, ImageMagick can convert multiple images to a single PDF.
How could I reverse the operation ...
46
votes
4
answers
35k
views
ImageMagick convert can't convert to webp
On Ubuntu 12.04 ImageMagick doesn't seem to support webp.
convert flyer.png flyer.webp
Creates a png file with webp extension.
On webp docs is stated that ImageMagick does support webp
$ convert --...
38
votes
2
answers
44k
views
Resize images to specific height value in ImageMagick?
I've looked around for this, and can't find an easily implemented solution.
Currently I'm working on an application that deals with panoramas. As they come out of the batch stitch process, the ...
30
votes
5
answers
18k
views
Is there a command to get the number of frames in a gif?
Is there a command to get the number of frames in a gif?
I have some gifs, and I want to convert them into arrays, but I want to limit the array, and structure of the array based on the number of ...
30
votes
4
answers
108k
views
14.04 doesnt have package imagemagick
Usually I had installed Image Magick on my Ubuntu systems with a command like this
sudo apt-get install imagemagick
or like this:
sudo apt-get install php5-imagick
Right now I am running the ...
30
votes
1
answer
29k
views
Where is the magick command of Imagemagick?
This may be a simple question, however, I couldn't find a solution.
The ImageMagick contains a program named magick to convert image formats from one to another.
When I wrote $ magick into the console,...
26
votes
1
answer
51k
views
dpkg: error processing package install-info
I tried installing imagemagick package by
sudo apt-get install imagemagick
I'm getting the following error now, how to fix it.
$ sudo apt-get install imagemagick
Reading package lists... Done
...
21
votes
5
answers
25k
views
How to enable JPEG2000 (jp2) in ImageMagick?
I want to use ImageMagick to convert some files from jp2 (JPEG-2000) to jpg. The command to do that is fine, but I don't know how to enable the jp2 delegate in ImageMagick.
I installed ImageMagick ...
20
votes
2
answers
22k
views
ImageMagick "convert" command cannot use fonts!
convert -size 300x50 xc:none -font Arial -pointsize 20 -gravity center -draw "fill white text 1,1 \"$1\" text 0,0 \"$1\" fill black text -1,-1 \"$1\"" $WATERMARK_FILE
Above command results following ...
19
votes
6
answers
13k
views
Why do PDF documents open with ImageMagick?
Query shows evince is my default handler.
But, double clicking a pdf file opens ImageMagick. A pdf file's Properties shows ImageMagick as the default handler.
Why is this happening ?
After ...
18
votes
2
answers
15k
views
How can I install the latest upstream version of ImageMagick without compiling?
I had some issues with ImageMagick and I was told Ubuntu's default ImageMagick package is an ancient version and I should upgrade to resolve my issues.
How can I do that? I have the latest Ubuntu ...
17
votes
5
answers
20k
views
ImageMagick command line convert -limit values
I need to convert an extremely large image. The default resource limits of Image Magick are far too small.
The Image Magick website discusses changing the limits, but none of the syntaxes I've tried ...
16
votes
5
answers
11k
views
Convert PDF to images to PDF
I have a PDF that I want to show to someone without giving them the ability to copy it. One possible way would be to convert pages to images, then these back into a PDF. How can I use convert or pdftk ...
16
votes
3
answers
18k
views
ImageMagick convert on a multiple files
I have 3 files in a directory:
aaa.jpg
bbb.jpg
ccc.jpg
I can scale down an image using ImagkMagick convert:
convert aaa.jpg -resize 1200x900 aaa-small.jpg
I want to do all the images in ...
15
votes
3
answers
21k
views
How to add a border using Imagemagick
I'm want to add to my pictures in Imagemagick:
white colored border
2 inches wide
How can I do it?
15
votes
8
answers
83k
views
How to add support for the JPEG image format
After installing Imagemagick, I've tested it with jpg image, like this:
identify 1.jpg
But, I got this result:
identify: no decode delegate for this image format `1.jpg' @ error/constitute.c/...
15
votes
2
answers
6k
views
ImageMagick convert and low RAM
Please consider the following command for the imagemagick package:
sudo convert -resize 460x200 /path/to/test1.jpg /path/to/test2.jpg
Now test1.jpg is a fairly large image (12.5MB), but not unheard ...
14
votes
2
answers
3k
views
ImageMagick suddenly installed
I was taking a look at my installed programs, when I saw a program called ImageMagick, I took a look at it in the Ubuntu Software Center, and it's a program to manipulate images.
That's OK, but I ...
13
votes
5
answers
14k
views
Convert emf to PNG image using command line
Is there any command line tool available to convert emf to png images?
I tried the convert utility from ImageMagick, but it says
decoder for emf not found
13
votes
1
answer
10k
views
concatenate two images one below the other
Using the convert command, we can concatenate img1.png with img2.png:
convert img1.png img2.png +append full_img.png
However, the command above adds img2.png to the right of img1.png.
How to add ...
13
votes
3
answers
22k
views
ImageMagick PNG delegate install problems
Ubuntu 14.04:
I've downloaded the latest imagemagick source and installed, using option below to configure:
root@usve59445:~/im/ImageMagick-6.9.3-7# ./configure --enable-shared --with-png=yes
After ...
12
votes
3
answers
12k
views
RMagick install problem
I can't install RMagick because of the following dependency problem after trying sudo apt-get install libmagick9-dev (required according to this) on Ubuntu 10.0.4:
Note, selecting libmagickwand-dev ...
12
votes
1
answer
19k
views
Update ImageMagick Ubuntu
I would like to update my version of ImageMagick. I originally installed ImageMagick with...
sudo apt-get imagemagick
Current Version:
myapp$ convert -version
Version: ImageMagick 6.7.7-10 2014-...
11
votes
2
answers
6k
views
How to remove ImageMagick without breaking its dependencies?
I want to remove the pre-installed ImageMagick from my Ubuntu 16.04 LTS. Uninstalling it also removes CUPS and other dependent packages which I want to keep on my system.
Is there a way to remove ...
10
votes
5
answers
5k
views
How can I convert a folder of .pngs to .jpgs while setting the background color?
I have a folder of png files that have transparent backgrounds. I would like to convert them from the command line and maintain the images' transparent backgrounds.
I'd appreciate any help.
Since ...
10
votes
2
answers
12k
views
How to bulk convert NEF/RAW images to JPG and remove original images?
I want to convert all NEF/RAW image files to an image format that could be easily opened without additional tools.
I thought about using ImageMagick's convert tool as mentioned in How can I convert a ....
10
votes
3
answers
21k
views
How to install delegate libraries for Image Magick 7.0.7
I built Image Magick 7.0.7 from source on my Ubuntu 18.04 system.* Typing magick identify -version into the terminal now returns
Version: ImageMagick 7.0.7-37 Q16 x86_64 2018-05-31 https://www....
10
votes
2
answers
8k
views
imagemagick crop images to specific aspect ratio?
Given an image, how do I use imagemagick to resize it to a specific aspect ratio? for example, to an aspect ratio of 2:1
10
votes
6
answers
11k
views
Problems with compiling ImageMagick with HEIC
I had similar problems to the original poster of How to install delegate libraries for Image Magick 7.0.7
No Delegates after building 7.0.8-37.
I installed all the 240 MB odd libraries and the ...
10
votes
1
answer
18k
views
How to blur an image from command line?
I know it is possible to convert from png to jpg in command line with imagemagick. Is it possible to blur from commandline too?
I have found this documentation but it does not demonstrate how this ...
10
votes
1
answer
3k
views
Use ImageMagick to compare Images
I want to compare a source png file to a compressed file.
I am using imagemagick and this command:
convert image1 image2 -compose Difference -composite \
-colorspace gray -format '%[fx:mean*...
9
votes
1
answer
9k
views
How to batch / multi process cropping images in the terminal?
I tried to crop several images of the same size, but when I crop 5 images and the process is complete, only 4 images are cropped, 1 image is not cropped, if I crop 1 image an error will appear...
I'm ...
9
votes
3
answers
8k
views
Converting image to Jpeg2000 does not work
I try to convert an image to Jpeg2000:
convert example2.png -quality 95 example.jp2
But the output is still png:
file example.jp2
example.jp2: PNG image data, 2549 x 3507, 8-bit/color RGB, non-...
8
votes
4
answers
8k
views
How to draw a picture with text in the center of that via command-line?
I need to paint an image with text in the center via command-line to further put into the video. A simple yellow text on black background.
I tried FFmpeg way:
ffmpeg -loop 1 -r 1 -i b.png -b:v 1M -...
8
votes
3
answers
12k
views
ImageMagick cannot be detected by moviepy?
I am new to Linux. I installed ImageMagick as instruction on answer and it worked. But when I run my python code as below:
from moviepy.editor import *
clip = VideoFileClip("video.mkv").subclip(50,...
8
votes
1
answer
3k
views
Fix animated GIF images which eog can't open, but Firefox and ImageMagick can
I received a collection of animated GIF images from a friend, but I am unable to open some of them them with the standard image viewer eog.
The error messages showing up when trying to open them ...
7
votes
3
answers
3k
views
Unable to restore Envince as default pdf viewer
I don't know why, but somehow "ImageMagick" gained the status of being my default PDF viewing application (I didn't set it manually, maybe it came with the installation of iscan or plex).
Now, when I ...
7
votes
2
answers
10k
views
How can I batch convert images to b/w while preserving the folder structure
I want to batch process images but I have a very specific task that I want to do
I do not want to change image type
I want to make them black and white
I want it to create/preserve images and sub ...
7
votes
2
answers
8k
views
Merging multiple images into one document and add any caption/label to them
I have multiple jpg and png images. I would like to combine them within one document (ODT/PDF/RTF).
It can be easily done by means of following command:
convert *.png allTogether.pdf
However, there ...
7
votes
2
answers
5k
views
Resize large images with mogrify (ImageMagick) but leave small images unaffected
Images can be resized using mogrify from the ImageMagick suite:
mogrify -resize 256x256 *.jpg
But this will resize images so that the largest dimension is 256px, including images that are smaller ...
7
votes
3
answers
6k
views
What is simplest process to get ImageMagick 7 with PNG support on Ubuntu?
I've tried to find a simple explanation for several hours but I just can't seem to find anything useful. I'm primarily a Windows programmer with some experience with Linux-based OSes. For some reason ...
6
votes
3
answers
8k
views
Convert transparent image sequence to gif
I want to convert an image sequence into a gif animation, and i'm using this:
convert -delay 100 -loop 0 image*.jpg animation.gif
The problem is that for transparent images i can see other images ...