Questions tagged [imagemagick]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

imagemagick - reduce image quality lower than 1%?

How can I reduce the image quality lower than 1%? For example, 0.5%? My failed attempt: IFS=$'\n' for f in $(find . -iname '*.jpg' -o -iname "*.png") do convert -quality 0.5% -...
Run's user avatar
  • 2,563
4 votes
2 answers
2k views

How can I convert an avif image file to a png file?

How can I convert an avif image file to a png file? $ convert macadamiaCracker1.{avif,png} convert: Decoder plugin generated an error: Unspecified (7.0) `macadamiaCracker1.avif' @ error/heic.c/...
Tim's user avatar
  • 24.8k
1 vote
0 answers
27 views

convert: combine multiple imges to pdf but convert them first to jpg

I have a list of image files which I want to combine into a pdf. The ImageMagick for that is convert myImgFiles*.png -resize 1000 myOutput.pdf and works perfectly. But now I first want to convert the ...
casiosmu's user avatar
  • 111
1 vote
1 answer
137 views

How do I mass-convert png images to GIMP brushes?

I've been trying to make some battlemaps for my DnD game in GIMP, I downloaded a whole bunch of assets and textures in png format. To be able to easily use them, I'd like to mass-convert the PNGs into ...
kakost's user avatar
  • 11
0 votes
2 answers
816 views

I am using Ubuntu 22.04 and when trying to use ImageMagick to convert pdf to jpeg format I get error. /etc/ImageMagick-6/policy.xml: command not found

Thank you for looking at my situation. I am running Ubuntu 22.04. I wanted to convert a pdf file to a jpeg file format. After typing dr@Dell-1:~$ sudo /etc/ImageMagick-6/policy.xml I get the ...
Cyneburg's user avatar
1 vote
1 answer
842 views

Why am I getting ESM updates 1 year into a LTS release? [duplicate]

From my knowledge, ESM messages should not appear until 5 years into an LTS release but I am getting these messages when running apt upgrade. I removed apt ESM hook after backing it up and the message ...
Usermaxn's user avatar
  • 197
70 votes
8 answers
71k 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' ...
Philippe Gaucher's user avatar
0 votes
1 answer
140 views

ImageMagick-6, how to adjust brightness of background only of scanned page, without touching the text

I have a pictures of scanned book, jpeg format. All pages have gray backround with some noise, due to grayscale mode used when scan. ImageMagick-6 Image info: Resolution: 200x200 Colorspace: Gray Type:...
Lexx Luxx's user avatar
  • 549
0 votes
1 answer
376 views

How to resize an image using ImageMagick

From How to easily resize images via command-line? I know I can use this command to resize an image in bash: convert -resize 1024X768 source.png dest.jpg But I'm stuck at only providing the width ...
Saeed Neamati's user avatar
0 votes
0 answers
183 views

Imagemagick C and C++ libraries can't be installed at same time on Ubuntu 22.04

apt install libmagickwand-dev graphicsmagick-libmagick-dev-compat Issue: apt won't install both packages at the same time. apt removes one when I install the other. If I attempt to install both at ...
null's user avatar
  • 1,351
0 votes
1 answer
384 views

convert image to gif fails with error

I have 506 jpg images I want to make into a gif. but convert fails with the error: convert-im6.q16: cache resources exhausted 2022-12-19-152850_210.jpg' @ error/cache.c/OpenPixelCache/4083` is there ...
j0h's user avatar
  • 14.7k
0 votes
0 answers
122 views

Compress JPG images with mini lose in quality & usage of smoothing

Which Linux CLI tool is the best for compressing JPG images using a smoothing value for even better image size optimization? I didn't really get along with ImageMagick when it came to smoothing. With ...
Legion's user avatar
  • 1
1 vote
1 answer
153 views

Batch convert multiple, specific images spread across dozens of folders

I have a list of JPG files, each located in different folders on my command line only server, that I need converted to PNG. I know the simple command to convert them one-by-one using mogrify. But I ...
Matt's user avatar
  • 111
1 vote
1 answer
64 views

How can I detect PDF policy of ImageMagick

I maintain qr-backup, a program which makes some PDFs. My users are encountering a bug where convert fails on PDFs. Why and how to fix it is explained here. imagemagick - convert not allowed What's a ...
Zachary Vance's user avatar
0 votes
1 answer
132 views

How can I use montage to concatenate 3 images so that they form an "inverted triangle"?

I'm trying to use montage to concatenate 3 images so that 2 are placed on top and one on the bottom in the middle, so that the overall shape of the concatenated images is kind of like an inverted ...
An Ignorant Wanderer's user avatar
0 votes
1 answer
176 views

Easier ImageMagick Convert Syntax Needed

Is there a simple one liner in Terminal that will: Convert all png files in a folder to jpg files preserving base filenames. Resize all these files to a specified width while preserving the aspect ...
Kevin Berry's user avatar
1 vote
1 answer
935 views

Creating AVIF or HEIC images with transparency does not work with ImageMagick in 22.04

After upgrading to Ubuntu 22.04 I was pleasantly surprised that creating images with the new AVIF or HEIC formats was supported by default. It's a breeze. convert image.png image.avif convert image....
Janghou's user avatar
  • 5,589
1 vote
2 answers
2k views

Install imagemagick command line tools only?

I installed imagemagick using... sudo apt install --no-install-recommends imagemagick This also installs a graphical application which can be launched from the Apps Grid. (The app launcher is display-...
Enterprise's user avatar
  • 12.1k
0 votes
1 answer
185 views

re-configure php for imagemagic and openjpeg

My PHP scripts cannot read jpeg2000 files, and neither can the imagemagick command line. I installed Ubuntu 18.04 server from the standard download, it installed imagemagick and PHP for me. Apparently ...
Mike Higgins's user avatar
1 vote
1 answer
3k views

Magick++.h: No such file or directory (Even after installing Magick++)

I am using a WSL Ubuntu terminal. I executed the following command to install Magick++: sudo apt-get install libmagick++-dev After this, I checked to make sure that Magick++.h has been installed or ...
big tree's user avatar
2 votes
1 answer
3k views

ImageMagick convert-im6.q16: unable to open image - No such file or directory @ error/blob.c/OpenBlob/2874

I am having some troubles in a script with convert command in ImageMagick package. Here is the line : convert $dst_folder/$1/$2/$3 -resize 144x144\> $thb_folder/$1/$2/$thb_picture where $1 and $2 ...
Gaspard's user avatar
  • 31
0 votes
0 answers
37 views

How do I use imagick to find all images that are not sized 600x300 in my current folder and all its subdirectories?

I want to find all images that are NOT equal to a size (600x300) in my current folder and all subdirectories. What should I do? I tried this but it's not working: find . -iname "*.png" -type ...
AGamePlayer's user avatar
1 vote
1 answer
231 views

I installed ImageMagick and now nvidia-smi cannot communicate with nvidia drivers

I am running Ubuntu 20.04.3 LTS and was using a Nvidia GPU just fine yesterday. I then installed imagemagick (only new install although this may include dependencies), restarted my PC, and now I am ...
Sven Voigt's user avatar
-1 votes
1 answer
214 views

Automatically adding a number to each image in a directory

I want to display a number on top of each image, for all image files in a directory. In other words, each image is modified to contain a box containing a number. How can I automate this?
Per Christian Henden's user avatar
0 votes
1 answer
310 views

How "Imagemagick" is on my system without my installation?

The system I use is "Ubuntu 20.04.3 LTS". I did not install Imagemagick. but today after installing Latex its icon is on my applications list. does it relate to latex?! and why it's ...
Parham Hasani's user avatar
2 votes
2 answers
2k views

Opened imagemagick using terminal, not sure how to close it now

I opened imagemagick through the terminal with $ display filename.jpg Once it opened, the terminal was in use (?) as in no more prompt, just blank space where I could type anything like when you write ...
gfries's user avatar
  • 53
1 vote
1 answer
790 views

convert RAF files in imagemagick

I'm trying to convert .RAF files to .png using imagemagick. When I invoke the command: convert In.RAF Out.png I get an error: convert-im6.q16: delegate failed `'ufraw-batch' --silent --create-id=also ...
iHnR's user avatar
  • 181
0 votes
0 answers
70 views

Image Magick will not purge

I have a similar problem on double - boot windows 10 / Ubuntu (originally windows 7/windows 10 / ubuntu... I started to get notices in the log that Image Magick was in a 'bad confiiguration state' so ...
John Likens's user avatar
2 votes
1 answer
683 views

convert bunch of images to black and white with overwritting existing images

I need to convert a bunch of images (about 1000) to black and white I used the following code: convert *.bmp -monochrome ./*.bmp but it produces new images. for example, I have file1.bmp, file2.bmp ...
Elahe Kamel's user avatar
0 votes
0 answers
81 views

How to Convert 2 Image to 1 Page PDF With terminal?

I have a question, I have a problem, I want to change 2 images in 1 page pdf, how do I do it? I tried this command convert *.jpg -resize 1240x1753 \ -extent 1240x1753 -gravity ...
Joe Cola's user avatar
  • 343
1 vote
0 answers
182 views

How to convert a directory of jpg files to a pdf with filenames as bookmarks?

I have a directory of jpg files that are scans of my handwritten notes. How do I convert them to a single pdf file that has the filenames as bookmarks? (I eventually also want to add ocr. As ...
jm jm's user avatar
  • 21
0 votes
1 answer
338 views

Create a gif from the recent 10 images in a folder?

I am wondering if there is a way to create a GIF using ImageMagick or other tools by considering only the recent 10 images from a folder?
SEU's user avatar
  • 139
3 votes
1 answer
1k views

How can I use the `identify` command to find out *only* the file type?

I want to use the identify command (from ImageMagick) to determine a file's type. The sample command identify -quiet 'Sample File.gif' will list several lines. Is there a short and simple way to ...
FedKad's user avatar
  • 9,910
2 votes
1 answer
336 views

Problem installing ImageMagick 7 using IMEI

I tried to install ImageMagick 7 by IMEI from github: https://github.com/SoftCreatR/imei/ but always had this answer: Signature verification failed! Please check /var/log/imei.log for details. ...
Gazzubuteo's user avatar
0 votes
1 answer
181 views

ImageMagick trouble

Every time I try to download a pdf file, ImageMagick is launched and fails to render the file. How do I get rid of or disable ImageMagick?
Ric Stephens's user avatar
1 vote
0 answers
152 views

Combine a .jpg and .txt in one PDF file (A4 format)

I'm trying to combine two separate files into one PDF file (A4 format). The left side should be filled with a jpeg image (for example: 0050.jpg) and the right side should be filled with text (or an ...
Wouter's user avatar
  • 11
1 vote
2 answers
858 views

How to convert 32MB of PNG file to 200Kbs without losing its colors

I have couple of images that are of 32MBs of size and I want to change their size from 32MBs to 100Kbs or any KBs of size without affecting its colours. The commands I am trying are: muhammad@muhammad-...
LearningROR's user avatar
13 votes
3 answers
14k 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 ...
Al Lelopath's user avatar
3 votes
1 answer
2k views

Resize image to specific size

I know there are several ways to resize an image via the command line. Some of them are specified here. However, I was wondering whether there is a way to specify the size of the resized image, e.g. I ...
hyhno01's user avatar
  • 45
8 votes
2 answers
9k 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 ....
matandked's user avatar
  • 1,119
0 votes
1 answer
558 views

How do you hide ImageMagick?

I know that you can hide applications by going to /usr/share/applications/, selecting the <appname>.desktop and editing in Hidden=true. In this case however, I can't find imagemagick's .desktop ...
Iammethe24's user avatar
2 votes
1 answer
197 views

Inkscape unable to access ImageMagick

Platform details: Ubuntu 20.04.2 LTS Inkscape 1.0.2 (394de47547, 2021-03-26) (snap image) ImageMagick 8:6.9.10.23+dfsg-2.1ubuntu11.2 and 8:6.9.7.4+dfsg-16ubuntu6.8 (two non-snap versions are ...
Meekaa Saangoo's user avatar
0 votes
0 answers
70 views

How to install libheif-dev on Ubuntu 18.04 LTS? [duplicate]

For a longtime I try to get Imagemagick running on my Ubuntu 18.04. After a alot of searching and reading I am stuck now installing libheif-dev. It seems there is an easy solution for 20.04 LTS: https:...
Mips's user avatar
  • 1
0 votes
1 answer
423 views

Imagemagick montage is creating corrupted filenames in the display command

The Tile Verb in ImageMagick display is not working correctly due to montage corrupting the filenames, ls -1 home*.png home_10.png home11_biggerMB.png home_12_1600.png home_12.png home_15_212_baths....
catmandu777's user avatar
1 vote
1 answer
785 views

How to resize images to either 900-pixels-height for vertical ones or 900-pixels-width for horizontal ones?

I have vertical (i.e. height > width) and horizontal (i.e. width > height) images. I want to resize them to either 900-pixels-height vertical ones or 900-pixels-width ones based on their ...
hlee's user avatar
  • 15
27 votes
1 answer
22k 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,...
kelalaka's user avatar
  • 503
2 votes
2 answers
734 views

How to remove slightly modified duplicate images?

I have thousands of images that I have made in my phone and DSLR over last couple of years and never given a thought about photo management until recently and it is a mess now. I used fdupes -r . > ...
Pladin's user avatar
  • 23
0 votes
0 answers
11 views

i cant install libmagickcore-dev,libmagickwand-dev in ubuntu 20.04 [duplicate]

I tried to install them buy sudo apt-get install libmagickcore-dev libmagickwand-dev it gives Reading package lists... Done Building dependency tree Reading state information... Done Some ...
Chiranjeevi Medicharla's user avatar
1 vote
0 answers
70 views

Colormapped image required when converting .tif to .png with ImageMagick

As the title says when running the command: convert -depth 32 ./heightmap.tif ./heightmap.png I recieve the error: convert: colormapped image required `./heightmap.tif' @ error/quantum-import.c/...
Freddie R's user avatar
  • 111
1 vote
1 answer
929 views

how to convert 1280x720 jpg files to 640x240 ppm files using ImageMagick convert command?

I'm kind of in a hurry so I ask it here (I'll read the documentation later). I have image files (width 1280, height 720, colored, jpg) and I want to first reduce the files to half both vertically and ...
Chan Kim's user avatar
  • 1,809

1
2 3 4 5 6