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
0 answers
10 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 ...
  • 1
1 vote
1 answer
26 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 ...
  • 111
0 votes
0 answers
28 views

imagemagic: stacking of the images using convert and montage

My bash script uses convert of the image magic to stack horizontally two types of the images producing 2xN multi-image chart: convert \( "${output}/type1*.png" -append \) \( "${output}/...
0 votes
0 answers
26 views

Screenshot of a remote X server

I'm working on a project that must be able to take some screenshots of a remote X server. So far, I managed to get one screenshot of the local X server using imagemagick. import -window root -display :...
1 vote
1 answer
29 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 ...
0 votes
1 answer
62 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 ...
0 votes
1 answer
54 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 ...
1 vote
1 answer
426 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....
  • 5,211
1 vote
2 answers
415 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-...
  • 11.4k
0 votes
1 answer
45 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 ...
1 vote
1 answer
1k 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 ...
1 vote
1 answer
1k 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 ...
  • 21
0 votes
0 answers
13 views

Ubuntu 21.10 How to install imagemagick and webp [duplicate]

I tried to install imagemagick and webp, but I get an error: $ sudo apt install imagemagick Reading package lists... Done Building dependency tree... Done Reading state information... Done Package ...
  • 563
0 votes
0 answers
26 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 ...
1 vote
1 answer
162 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 ...
-1 votes
1 answer
91 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?
0 votes
1 answer
130 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 ...
2 votes
1 answer
1k 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 ...
  • 53
1 vote
1 answer
373 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 ...
  • 151
0 votes
0 answers
39 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 ...
2 votes
1 answer
230 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 ...
0 votes
0 answers
45 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 ...
  • 145
1 vote
0 answers
134 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 ...
  • 21
0 votes
1 answer
230 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?
  • 109
2 votes
1 answer
507 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 ...
  • 7,334
2 votes
1 answer
205 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. ...
0 votes
1 answer
88 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?
1 vote
0 answers
128 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 ...
  • 11
1 vote
2 answers
597 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-...
9 votes
3 answers
7k 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 ...
2 votes
1 answer
1k 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 ...
  • 35
5 votes
3 answers
5k 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 ....
  • 1,069
0 votes
1 answer
342 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 ...
2 votes
1 answer
133 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 ...
0 votes
0 answers
28 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:...
  • 1
0 votes
1 answer
410 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....
1 vote
1 answer
539 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 ...
  • 15
17 votes
1 answer
11k 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,...
  • 391
2 votes
2 answers
322 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 . > ...
  • 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 ...
1 vote
0 answers
44 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/...
  • 111
1 vote
1 answer
683 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 ...
  • 1,477
4 votes
3 answers
3k views

Dependency problems installing libmagick++-dev on Ubuntu 18.04

I am trying to use install splashr, but running into some dependencies issues and nothing seems to work. I know it is more related to misconfiguration in OS than to issues in the package itself, but ...
  • 153
0 votes
1 answer
335 views

convert command of ImageMagick-6 does not run via Run Bash

Thank you for having a look. Here is my simple script: #!/bin/bash echo "Running!" > /home/../batch/apache_status_label.txt; convert \label:@/home/../batch/apache_status_label.txt ...
0 votes
1 answer
70 views

Delete link to command to retry ImageMagick installation

TLDR: I messed up an installation of Imagemagick and I am trying to reset back so that when I type magick it simply says Command 'magick' not found... rather than bash: /usr/local/bin/magick: No such ...
  • 131
1 vote
1 answer
128 views

Bulk Quality Conversion of Images (ie Compression)

├── ~/ │ ├── content/ │ │ ├── image01.jpg │ │ ├── image02.png │ │ ├── image03.bmp │ │ ├── text-file.txt │ │ ├── video.mp4 │ └── ... └── ... Let's say I want to compress all ...
  • 1,991
0 votes
0 answers
57 views

I have ImageMagick installed but I can't uninstall [duplicate]

You can see with this pictures the ImageMagick software is installed. And: But if i try unistall: $ sudo dpkg --purge --force-all imagemagick dpkg: warning: ignoring request to remove imagemagick ...
  • 101
2 votes
1 answer
198 views

How to check if an image has 2 bytes per pixel and how to convert it to an image with 1 byte per pixel?

I have thermal images from FLIR camera that has 2 bytes per pixel. I am not sure how I could check in Ubuntu if these images have 2 bytes per pixel or not. Also, how can I convert a 2 byte per pixel ...
  • 3,919
1 vote
1 answer
887 views

Errors converting PDF with Imagemagick on Ubuntu 18

On Ubuntu 18.04.4 LTS on Azure with a Bitnami WordPress stack, I'm trying to get Imagemagick and Ghostscript working so WordPress will create PDF thumbnails. A simple conversion test gives an error. ...
4 votes
2 answers
3k views

Upgrade to imagemagick7 and force php to use it

I have Ubuntu 18.04.1 LTS which comes with ImageMagick 6.9.7 by default and I wanted ImageMagick to process jp2 images so I installed libopenjp2-7-dev and also installed imagemagick7 from source like ...

1
2 3 4 5 6