Questions tagged [imagemagick]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
83 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
996 views

How to convert 1280x720 .jpg files to 640x240 .ppm files using ImageMagick's `convert` command?

I have some image files (width: 1280 px, height: 720 px, colored, .jpg) and I want to first reduce them to half both vertically and horizontally, i.e. to 640x360 px, and then I want to cut 120 rows (...
Chan Kim's user avatar
  • 1,981
4 votes
3 answers
6k 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 ...
Guilherme's user avatar
  • 153
0 votes
1 answer
458 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 ...
BlackBeardie's user avatar
0 votes
1 answer
91 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 ...
falcoso's user avatar
  • 131
1 vote
1 answer
205 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 ...
Display name's user avatar
  • 2,231
0 votes
0 answers
62 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 ...
Thiago's user avatar
  • 101
2 votes
1 answer
373 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 ...
Mona Jalal's user avatar
  • 4,545
1 vote
1 answer
1k 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. ...
Mark Berry's user avatar
6 votes
2 answers
5k 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 ...
Petru Lebada's user avatar
1 vote
2 answers
4k views

installing imagemagick [closed]

I am unable to complete the installation of Imagemagick in Ubuntu 18.04 LTS. Long story short, I have three packages of the latest Imagemagick packages showing in my Synaptic Package manager, ...
scott2764's user avatar
8 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 ...
Joe Cola's user avatar
  • 343
1 vote
0 answers
285 views

Removing right-click menu option in Xubuntu/XFCE - Imagemagick

I'm using Xubuntu 20.04. Every time I right click on a picture I get an option to use Imagemagick at the top. I would like to get rid of it. I've tried removing display-im6.q16.desktop from the ~./...
Ubuntu_enthusiast's user avatar
3 votes
1 answer
3k views

How to change image PPI in batch mode?

Is it possible to change an image resolution expressed in pixels per inch (PPI) in batch mode, using command line? My images resolution is currently below 100 PPI. I would like to enhance it to ...
Vimal Kumar Vazhappally's user avatar
3 votes
1 answer
3k views

ImageMagick still exists after apt remove?

I installed ImageMagick via apt install imagemagick but then realised I need a newer version, so I compiled it from source and installed over the top of the old version. mogrify -version still showed ...
Clonkex's user avatar
  • 1,654
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 ...
Clonkex's user avatar
  • 1,654
5 votes
1 answer
6k views

Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config on Ubuntu 16.04

Trying to install pdfbeads on Ubuntu LTS 16.04 with the command $ gem install pdfbeads I'm getting the error message "ERROR: Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config" Below ...
marinnen128's user avatar
4 votes
3 answers
4k views

Convert .dng to .png is not working in Ubuntu 16.04

I want to convert .dng file extension to .png/.jpg format. Here is my command line: convert /var/www/html/img/10fassettsquare.dng /var/www/html/img/14.png I am trying to convert but it shows an ...
Pratap-DPHP's user avatar
5 votes
1 answer
2k views

How are the chances that ImageMagick 7 will be part of Ubuntu 20.04

I tried to find issues for the Upgrade in Ubuntu 20.04 to ImageMagick 7, but did not find one. I believe the Package will be imported from Debian which also seems to be still on ImageMagick 6.9 ? ...
Alex's user avatar
  • 1,052
4 votes
2 answers
8k views

convert jpg to pdf

in my Ubuntu 19.10 when trying to convert .jpg to .pdf : convert gives : joso@joso-Aspire-ES1-433:~$ convert ‘/home/joso/Desktop/Marticeva etaziranje/IMG_20200104_102541.jpg’ output.pdf convert: ...
Kirby-1989's user avatar
2 votes
1 answer
2k views

Join images with padding and alignment

I have two images of different height which I want to join horizontally (i.e. side-by-side). I want the images to be bottom-aligned as well as to be separated by a 25 pixel wide white area. With ...
a_guest's user avatar
  • 599
1 vote
0 answers
85 views

convert a common pdf to multiple images but encounter security error [duplicate]

I tried to convert a downloaded pdf to multiple pages with commands $ convert -density 300 magit.pdf -quality 100 magit-%04d.jpg thus get error convert-im6.q16: attempt to perform an operation ...
Wizard's user avatar
  • 2,891
0 votes
1 answer
179 views

ImageMagick outputs an empty image when using the `-morphology` paramter

ImageMagick outputs an empty image when using the -morphology parameter. I tried the same command and it is working well on other computers. I uninstalled the lib and reinstall it, and even after ...
bedair's user avatar
  • 1
46 votes
3 answers
49k 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 ...
Wizard's user avatar
  • 2,891
2 votes
1 answer
440 views

ImageMagick Crop image keeping original position

Having https://upload.wikimedia.org/wikipedia/en/thumb/1/10/Stratton_Oakmont_logo.svg/1200px-Stratton_Oakmont_logo.svg.png I would like to cut the lion but keep the original image size and lion in ...
FrakyDale's user avatar
  • 247
1 vote
0 answers
1k views

Cannot install imagemagick in Ubuntu 19.04

I'm following the instructions. sudo apt update sudo apt-get install build-essential wget https://www.imagemagick.org/download/ImageMagick.tar.gz tar xvzf ImageMagick.tar.gz cd ImageMagick-7.0.8-66/ ...
Rosamunda's user avatar
  • 781
6 votes
1 answer
3k views

Installation of ImageMagick software fails with "configure: error: libltdl is required"

I am trying to install ImageMagick in my Ubuntu 18.04.1, following the instructions in this link. After running the following command ./configure I am getting the following errors: configure: ...
BHarath's user avatar
  • 105
2 votes
1 answer
681 views

Command to convert many images to one square image (not becoming a column or a row)

Is this really duplicate? I have not yet found it anywhere. For example: I have 4 PNG images: image1.png, image2.png, image3.png, image4.png. Every one of them is 200x200 pixels. I want to convert ...
user avatar
1 vote
1 answer
535 views

Install ImageMagick cli from repository

I want to use imagemagick to automate some image conversions. Unfortunately, when installed by building the source it misses the codec for opening png images. As far as I can tell, the fix for this is ...
Snappawapa's user avatar
4 votes
1 answer
3k views

ImageMagick still broken (using with /usr/bin/convert) [duplicate]

Despite trying all the fixes on this board and elsewhere, I STILL get the same break running $ /usr/bin/convert D1.JPG P1.pdf namely: unable to open image `P1.pdf': No such file or directory @ ...
user289334's user avatar
0 votes
0 answers
257 views

convert: Memory allocation failed

'''PYTHON3 bash = "width=`identify -ping -format '%w' {}` ".format('design_adjusted.png') bash += "height=`identify -ping -format '%h' {}` ".format('design_adjusted.png') ...
Ajay Khrolia's user avatar
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 ...
Iain1940's user avatar
  • 101
1 vote
1 answer
150 views

Locking script skips some commands

I'm using i3wm with XFCE as my desktop environment. I've disable the default XFCE lockscreen (light-locker, I believe) in favor of my own locking script which uses i3lock-color, and I'm using xss-lock ...
theasianpianist's user avatar
62 votes
2 answers
75k 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: ...
n00b.exe's user avatar
  • 723
1 vote
0 answers
2k views

Installing imagemagick on Ubuntu: Unmet Dependencies

On Ubuntu 16.04 I am using: $ sudo apt-get install imagemagick to install imagemagick. But however I get the following message and imagemagick is not getting installed: Reading package lists... ...
Mango D's user avatar
  • 183
1 vote
0 answers
109 views

ImageMagick (display Q16) as selection option to alter image gone in 18.04

In Ubuntu 16.04 I was able to select ImageMagick (display Q16) as option when I right click on an image to manipulate the image... in a fresh 18.04 its gone. How can I get it back as select option and ...
Philipp M's user avatar
  • 165
0 votes
1 answer
11k views

Php 7.3 extension imagick and gmagick on Ubuntu 18.04

How can i install php extension imagick and gmagick on ubuntu 18.04 LTS, i tried imagick using : sudo apt-get -y install gcc make autoconf libc-dev pkg-config sudo apt-get -y install libmagickwand-...
Wildcard's user avatar
2 votes
1 answer
780 views

Convert single page from PDF to JPEG and getting error: `no matches found: Binder3.pdf[12]`

I want to convert single page from 333 PDF pages file. I have tried with this command: convert Binder3.pdf[12] image.jpg, but for some reason I am getting this error: zsh: no matches found: ...
Dimitar's user avatar
  • 474
2 votes
1 answer
3k views

"import: unable to read X window image: Resource temporarily unavailable"

On Lubuntu 18.04, I am trying to take a screenshot of the current focused window. I am using import from Imagick following https://stackoverflow.com/a/32165476. It fails in a tab of lxterminal $ ...
Tim's user avatar
  • 25.2k
1 vote
1 answer
1k views

identify: error while loading shared libraries: libgvc.so.5: cannot open shared object file: No such file or directory

On our Solano build image ubuntu14-chrome64 we install imagemagick in the pre_setup hook with the following command: sudo apt-get update && sudo apt-get -y install imagemagick libmagickwand-...
Hirurg103's user avatar
  • 185
2 votes
0 answers
356 views

Trying to vertically append images with ImageMagick in terminal

Typing this: convert -append IMG1.jpg IMG2.jpg IMG3.jpg IMG4.jpg IMG5.jpg out.jpg I get this error: convert: no decode delegate for this image format `JPG' @ error/constitute.c/ReadImage/556. ...
peteubuntu's user avatar
3 votes
1 answer
2k views

Removing the alpha channel from all the jpg images in a folder

How can I remove the alpha channel from jpg images automatically? I am using a deep learning code based on PyTorch that requires 3 channels but my images have 4 channels. I saw this answer but I do ...
Mona Jalal's user avatar
  • 4,545
279 votes
5 answers
105k 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!
bill-lancaster's user avatar
2 votes
1 answer
2k views

How do you remove ImageMagick without removing PlayOnLinux?

I am trying to delete ImageMagick, but each time I do, it also deletes PlayOnLinux. I just want to remove ImageMagick.
Olivia Garcia-Godos's user avatar
1 vote
1 answer
2k views

How to resize a gif without deforming and remove the blank white region when it's cropped?

The below gif's dimensions are 600*800. Height is 800 pixels, so there's a lot of blank space at the bottom I want to remove. This was saved as old.gif: file old.gif old.gif: GIF image data, ...
showkey's user avatar
  • 342
1 vote
0 answers
639 views

how to change units in an svg file via the commandline?

I am taking Gif images, and converting them to sprite sheets so that i can cut them out with my laser. I wrote a script that handles this, but when I convert the png to an SVG, the units always come ...
j0h's user avatar
  • 14.8k
26 votes
1 answer
50k 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 ...
Shan Khan's user avatar
  • 1,241
0 votes
1 answer
876 views

How would I write a shell script to compress multiple images with imagemagick?

Currently im using this command in terminal to compress a single image with imagemagick: ./convert_with_logging photo.jpg -quality 50% photo2.jpg convert_with_logging is a script that contains: ...
K_dev's user avatar
  • 249
0 votes
1 answer
86 views

Is it possible to log the compressed size of the images compressed? (With imagemagick)

I want to get a log of each compressed image in order to see the saved size (because there are some image that after compression get bigger!) using just the terminal. Ex: convert photo.jpg -quality ...
K_dev's user avatar
  • 249
4 votes
2 answers
3k views

Convert all png,jpeg,jpg to jpg and compress them using imagemagick

Im almost there with this code: for PHOTO in /home/dvms/Desktop/projs/others/tests/gulp_test/src/images/*.{png,jpeg,jpg} do BASE=`basename $PHOTO` convert "$PHOTO" -quality 50% "/home/...
K_dev's user avatar
  • 249