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
1answer
28 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 ...
1
vote
0answers
78 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/ ...
2
votes
1answer
293 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: ...
1
vote
1answer
64 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 ...
1
vote
1answer
47 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 ...
2
votes
1answer
130 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 @ ...
0
votes
0answers
55 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') ...
0
votes
0answers
40 views

Writing a script to batch process svg to ico returns glitchy garbage when using ImageMagick?

Okay I've been doing a bunch of searching on this topic and I can't seem to find a good answer on this website, so please read this entire thing before marking it as a duplicate or whatever. I'm ...
5
votes
2answers
811 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 240mb odd libraries and the 2nd ...
1
vote
1answer
49 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 ...
1
vote
2answers
1k 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: ...
1
vote
0answers
404 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... ...
1
vote
0answers
39 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 ...
0
votes
1answer
4k 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-...
1
vote
1answer
77 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: ...
0
votes
0answers
48 views

Error when trying to open PlayOnLinux

So I installed POL yesterday, it all went smooth like any other Linux installation, but then when it finished and tried to open, this error came out. I looked the error in this site, but nothing came ...
1
vote
1answer
375 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 $ ...
1
vote
1answer
250 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-...
0
votes
0answers
25 views

VPS compressing images, if under load returns 0 compression rate

I have a stupid problem.. cannot find a solution.. I have a VPS which compresses my images... 8 cores, 16gb ram... But if I send too many images at once it starts returning 0 compression rate.. Is ...
2
votes
0answers
100 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. ...
0
votes
1answer
546 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 ...
109
votes
2answers
33k 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!
1
vote
1answer
225 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.
1
vote
1answer
231 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, ...
0
votes
0answers
189 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 ...
5
votes
1answer
9k 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 ...
0
votes
1answer
211 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: ...
0
votes
1answer
62 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 ...
4
votes
2answers
1k 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/...
0
votes
2answers
1k views

Resize multiple images with imagemagick from a folder to other (and keep the name) with a command [duplicate]

Lets say that the images are in the directory /Desktop/projs/proj1/img/ and I want that the output to go to /Desktop/projs/proj1/imgResized/. I tried this command: convert /Desktop/projs/proj1/img/*....
0
votes
1answer
6k views

Ubuntu 18.04 imagemagick does not contain imagemagick binaries

I am running Ubuntu 18.04. I needed to use imagemagick, a useful tool when needed, but one I rarely use, but I could not find it using imagemagick, or which imagemagick so I ran sudo dpkg-query -L ...
0
votes
0answers
510 views

How to install delegate libraries for Image Magick 7.0.8-6

I refer to a similar question asked on How to install delegate libraries for Image Magick 7.0.7 I am using Ubuntu 18.04 LTS. I have the same installation problem, when I type "identify --version" ...
1
vote
0answers
33 views

Converted image height and width is not as same as given value

I am trying to compare two images using imagemagic. But the problem i am facing is as my two images width and height are not same, i am first trying to convert one image to a desired value. convert -...
1
vote
0answers
79 views

16.04 LTS server, how to install CUPS without ImageMagick

My apologies if this has already been answered, I did quite a bit of searching with no luck. Ubuntu Server 16.04, I had to compile/install ImageMagick from source, because the ImageMagick package from ...
0
votes
1answer
451 views

Error using imageMagick's mogrify “delegate failed”

I am trying to convert an image file from jpg to png but returns an error. mogrify -format png abc.jpg mogrify: delegate failed `"dwebp" -pam "%i" -o "%o"' @ error/delegate.c/InvokeDelegate/1310. ...
4
votes
1answer
3k 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....
1
vote
2answers
2k 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 ...
1
vote
1answer
55 views

How do I prevent imagemagick's convert comand from scaling an image?

I'm trying to make sprite sheets out of animated gifs. The sprites are for my GPS, and each frame needs to be exactly 80x80 pixels. I used this command: convert -resize 80x80 input.gif g.png ...
2
votes
1answer
144 views

Is there a way to stack images side by side with imagemagick?

I'm writing a little program in C/C++ to convert gifs to a single image, where the frames are consecutive in a single image. Unfortunately, I am running out of free time, and I want to use the program ...
21
votes
5answers
6k 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 ...
3
votes
2answers
2k views

Right-click convert PDF to JPG?

Looking for an easy way for one of my employees to convert PDF files to a JPG. I can do something in CLI, but he can't. It has to either be automated (less desirable), or a right click convert thing. ...
1
vote
3answers
206 views

Resize only big images to small without changing the height/width ratio

I have a folder of colourful images in PNG and JPEG. By using file in linux, I can see PNG images are all PNG image data, ... x ..., 8-bit/color RGBA, non-interlaced where their height and width are ...
1
vote
1answer
758 views

How can you use Imagemagick crop to get first 100px from an image?

It's been awhile since I've played with Imagemagick. I do remember crop and I can take an image named foo.png and use: convert foo.png -gravity north -crop 1000x100 bar.png but my output is: bar-0....
1
vote
1answer
395 views

How to crop an image on terminal

I am trying to use imagemagic convert on ubuntu to crop an image from a .ps file, and to make this cropped part as a separate image or ,png or .jpg i tried the following but i was not lucky: convert ...
0
votes
1answer
801 views

convert from jpg to png and back several times (quality loss?) [closed]

With imagemagick one can convert images from one format to another. Is the conversion from jpg to png and from png to jpg (that is, converting to png to make several changes in the image, and ...
2
votes
0answers
522 views

Add webp support to GraphicsMagick [duplicate]

A Node.js program is using gm (GraphicsMagick) to do some image manipulation/parsing. While it works locally (on my own machine), it doesn't work on the server. Relevant output: Error: Command ...
2
votes
1answer
2k views

How can I convert all the images in a directory to jpg?

I have so many different images in a directory with sequential names 1 2 3 4 ... I was wondering if it was possible to convert all of them to jpg and resize them all to 900x900 without preserving ...
3
votes
1answer
5k 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 ...
1
vote
0answers
2k views

ImageMagick upgrade on Ubuntu 16.04 LTS

I installed imagemagick on my Ubuntu 16.04 server with this easy command: apt-get install php-imagick Everything is installed and is working fine with Nginx / php7.0-fpm. The actual installed ...
0
votes
1answer
478 views

How to remove duplicate imagemagick icons

I see two imagemagick icons. Can I remove them?