Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [imagemagick]

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

3
votes
0answers
448 views

How to obtain a version of ImageMagick compiled for OpenCL (Linux)

For reasons I do not understand, ImageMagick requires a special compilation to make use of OpenCL drivers on the host machine. Does anyone know of a place where I can obtain a Linux version compiled ...
2
votes
0answers
110 views

Resize images with ImageMagick to one of several aspects

I have a collection of images that I process with ImageMagick in a bash script. It loops over the images in a folder. Most of them are in 3:2 format, but some are 4:3, 2:1 and 1:1. However, they are ...
2
votes
0answers
444 views

Imagemagic and php exec: convert: no images defined

The command works just fine from the shell /opt/ImageMagick/bin/convert /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/pdfPyflQF /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/...
2
votes
0answers
477 views

Generating a thumbnail reel from a video with image magik and/or ffmpeg

I read a post detailing how you can call ffmpeg from image magik. I want to learn how to: Take a series of screenshots from a video, store them in memory (dont' write all images to disk) at the end ...
2
votes
0answers
493 views

Using imagemagick to crop and combine A4 sized PDFs

I have to make a photocopy of my driving license. I've scanned the front and back sides, and generated a PDF for each side (and a PNG as well just in case). So far, so good. Imagemagick reports: $ ...
2
votes
0answers
2k views

Using avconv to convert an animated gif to mp4 with sound

I want to convert an animated gif and a midi (music) file into a mp4 video. Is it possible? I saw a lot of topics on documentation, foruns and stackexchange sites, but I didn't find. It works with 1 ...
2
votes
0answers
839 views

ImageMagick delegate library error

I have recently installed ImageMagick and I am trying to use it to convert postscript files to .gif images. I ran the post installation test: /usr/local/bin/convert logo: logo.gif This works ...
2
votes
0answers
743 views

Using imagemagick or gifsicle to output GIF with specific filesize?

I have been following this online guide to convert a small video clip into image frames, then combine them together into a single animated GIF. The problem I'm having is that each GIF tends to be ...
1
vote
0answers
31 views

create image with transparent background with ImageMagick

I am currently working on a script to process assets for a game. I am breaking down old assets and reorganizing them for a new format. The original images have transparent backgrounds already. When I ...
1
vote
0answers
118 views

Adding margin to rasterized PDF using ghostscript

I'm cropping and rasterizing some PDFs using ImageMagick. In order to remove some text that I don't need, I want to crop to a smaller box than needed and then readjusting the page size adding some ...
1
vote
0answers
97 views

ImageMagick not setting color space

I'm writing a Python script to batch-process several thousand images. All images are in sRGB, and I'm trying to make a single collage of them. For this I thought I'd first have ImageMagick create an ...
1
vote
0answers
88 views

Weird border artefacts when taking screenshots with `import`

I take screenshots with Imagemagick's import command such as import /tmp/screen.png. When I drag an area on screen, it shows an outline of the area I'm about to capture, but it's a little finnicky -- ...
1
vote
0answers
2k views

Convert Sketch file to Layered editable PSD

I'm trying as hard as I can to convert a Sketch file to a layered and editable PSD file. I know I'm not the only one to have asked this question and this is currently a big challenge that lot of ...
1
vote
0answers
342 views

ImageMagick fails to install on Raspbian Jesse v4.9

For 2 days now I have been trying to install ImageMagick on Raspbian Jesse (4.9) No matter the advice I have followed, I just can't get it to install, always failing with the following: sudo apt-get ...
1
vote
0answers
84 views

How to crop a image into several rectangular grids using imagemagick in nodejs

I am using nodejs imagemagick module. Its is very difficult to find how i could split a give image into several rectangular grids(Just like in Instagram). How can this be achieved in nodejs ? Any ...
1
vote
0answers
106 views

Straightening a curved image in MATLAB

I registered a video of the experiment that I am carrying on - It is an image of a rotating cylinder. However, when I save the image, the cylinder appears a bit skewed as you can see in the image file ...
1
vote
0answers
222 views

Disk space used by ImageMagick/Ghostscript

I have a 200 MB PDF file input.pdf consisting of scanned images, whose resolution I want to reduce. Under Windows 7 the following command convert -density 200x200 -quality 60 -compress jpeg input....
1
vote
0answers
295 views

how to manage images in emacs org mode

I am considering switching from zim wiki to org mode for managing collection of web page pieces. Typically it includes images and texts I copied from a web browser. The question: 1 how to insert ...
1
vote
0answers
764 views

How to apply clut (Color Lookup Table) using ImageMagick command line

IamgeMagick dcouments its -clut option as "Replace the channel values in the first image using each corresponding channel in the second image as a color lookup table...This operator is especially ...
1
vote
0answers
134 views

ImageMagick: is there a way to get the same PNG from the same image on multiple platforms?

I have a script for converting game assets to multiple resolutions, via imagick, and when I run the same imagick commands on Mac and Windows (with the same version of imagick - ImageMagick 6.8.7-2), ...
1
vote
0answers
84 views

Gif output not as smooth when selecting a sequence of files individually

I have a sequence of images 001.png 002.png 003.png that I would like to combine into an animation. I used the following command convert -dispose 3 -loop 0 *.png out.gif And it looks ok. However, ...
1
vote
0answers
164 views

PhotoViewer.dll for Windows XP

I know it comes with Windows 7, but is there an equivalent standalone module for XP's "Picture and Fax Viewer"?
1
vote
0answers
447 views

can I remove imagemagick by deleting directories?

I posted this to StackOverflow, but probably belongs here. I'm on OSX Lion, trying to get back to basics so I can run RMagick in Rails 3.0, using rvm. When I tried to add the RMagick gem to Rails ...
1
vote
0answers
860 views

Installing an OTF Font under Ubuntu Server

I have an OTF Font I want to use with ImageMagick. Last time I had to install it on other machines, I copied it into /usr/share/fonts and ran fc-cache, then, convert -list font | grep "myfont" found ...
1
vote
0answers
1k views

From Illustrator to png with the help of ImageMagick

Currently I save my files in Illustrator as .pdf files so that I can use ImageMagick to manipulate the resulting images programatically (cropping, adding borders, resizing, etc) and convert them to ....
0
votes
0answers
11 views

How do I convert PDF 2 MTIFF in command line on Mac?

I need to convert some multi-page PDFs in to multi-page TIFFs whithout quality loss. Any idea to do it in a batch on command line on Mac OS Mojave? I tried ImageMagick but seem to be buggy in current ...
0
votes
0answers
27 views

Imagemagick: splitting pdf's pages w/ overlap

Imagemagick's convert allows for splitting a pdf's page to several pages, e.g. convert in.pdf -crop 50%x50% +repage out.pdf makes 2 half-sized pages of the original(s). I want a version of split that ...
0
votes
0answers
27 views

Run agt-get install imagemagick on raspberry pi using docker file

I am new to docker in rasppberry pi. I have installed docker on my raspi, and I wanted to create a docker image. This docker image when pulled into another raspi with docker should install imagemagick ...
0
votes
0answers
39 views

What is the GraphicsMagick equivalent of ImageMagick's +opaque?

Extracting a specific color (red) from an indexed BMP in ImageMagick goes like this: convert input.bmp +opaque "#FF0000" red.png Trying it with GraphicsMagick fails as it appears to not support +...
0
votes
0answers
46 views

Imagemagick: stack images horizontally/vertically and match height/width

For example 1.jpg, 2.jpg which are of dimension axb, cxd. If I run something like convert +append 1.jpg 2.jpg out.jpg. I'd like the out.jpg be (a+c)xb or (a+c)xd. If I run something like convert -...
0
votes
0answers
522 views

Adding a logo to QR Code using ImageMagick

I'm trying to add a logo to a QR Code image. Logo image area must be lower than 12% of the QR code area, in order to be easily used by the consumers. The problem is that the output file must be in ...
0
votes
0answers
29 views

Can ImageMagick make a bad black and white scan clearer to read?

I'm working with a set of scanned lecture notes. The lecturer wrote the notes in very faint pencil, which scans to a light grey. But they instead scanned in black and white, which turns a light grey ...
0
votes
0answers
491 views

How to apt install imagemagick version 7 instead of 6?

I'm trying to install the latest imagemagick on an Ubuntu 17.10 server. Imagemagick version 7 has been out for ages, but to my surprise, this: sudo apt install imagemagick Installs version 6.9.7 ...
0
votes
0answers
127 views

ImageMagick doesnt work under Debian. Missing libopenexr6 / libIlmImf which is missing from repository

I upgraded to Debian GNU/Linux 9.4 (stretch) , and now ImageMagick doesn't work. convert --version gives this error: convert: error while loading shared libraries: libIlmImf.so.6: cannot open shared ...
0
votes
0answers
28 views

How to scale an SVG relative to its canvas size with the command line

I'm trying to create a pipeline for rendering my vector graphics. I'm basically trying to upscale the vector by 16 times, rasterize it, then downscale to supersample it back down to native resolution, ...
0
votes
0answers
39 views

Rescale .svg for composite image via ImageMagick

I've make a couple of batches to automake folder and library icons from the whole twemoji glyphs. Here's my repository on Github. For summarize my problem: Basically this scripts converts, using ...
0
votes
0answers
36 views

Any way to pull multiple images out of a single png, by whitespace / transparency?

I have a file with a bunch of cleanly separated objects, but I need them as separate .pngs or photoshop layers. I've looked into imageMagick and Mogrify's trim options, but they only seem to trim ...
0
votes
0answers
168 views

ImageMagick error message: convert: non-conforming drawing primitive definition `n25'

I am learning ImageMagick. This error occurs when I run a code copied from https://www.imagemagick.org/Usage/draw convert: non-conforming drawing primitive definition `n25' #Bezier_Primitive ...
0
votes
0answers
16 views

ImageMagic ,change color, change the image more abstract

I am learning ImageMagick, I have a image, want to make it abstract. White the background , and darken the border of the boat. image raw Here is what I tried. convert a.jpeg -fuzz 40% -fill none +...
0
votes
0answers
64 views

How to add timestamp(OSD) in video using ImageMagick command line?

I want to add a timestamp an OSD (on screen display) in Video (recorded in .mp4 format) using the ImageMagick command line. Do I have to apply continuously a video stream/buffer to ImageMagick? What ...
0
votes
0answers
67 views

Why does mogrify output more files than what I gave as input

I converted some PDF files to PNG files using: mogrify -background white -alpha off -verbose -density 1000 -resize 1600 -format png ./*.pdf on Microsoft Windows 10 (requires Imagemagick and ...
0
votes
0answers
66 views

How to convert images with ImageMagick convert to make “standard” JPEGs?

I have lots of images in various formats. I want to convert them to JPEG with same parameters (standardized). I thought it would be enough to just do: convert image.ext -strip image.jpg But some of ...
0
votes
0answers
71 views

Compositing multiple image files with one text file

I'm trying to composite multiple background images with one text file using ImageMagick. For example: I have these background files: bg/red.png bg/yellow.png bg/blue.png bg/black.png and this ...
0
votes
0answers
359 views

ImageMagick convert chokes on a large PNG, makes system nearly freeze

I have this PNG file which I want to convert to JPG format. It's a little large - about 20,000 x 30,000 pixels (but compressed very well, i.e. 780 KB). I'm running convert myfile.png myfile.jpg and ...
0
votes
0answers
335 views

Command line to combine images in ImageMagick?

I have two sets of images in a folder. E.g. Bottom1.png Bottom2.png Bottom3.png and Top1.png Top2.png Top3.png The top (partially opaque 32-bit) ones need to be layered on top of the bottom (24-...
0
votes
0answers
219 views

ImageMagic colors not as bright as Photoshop when converting to CMYK PDF

My prospective printer demands a CMYK PDF. I have 40 PNGs to prepare (repeatedly). I convert an RGB PNG to a CMYK PDF with ImageMagick like this: convert myRGB.png -colorspace cmyk cmyk.pdf The ...
0
votes
0answers
22 views

grab file every x min, and save with continuous number

I have a ip camera which saves pics to my rasperry pi's ftp, than the pi uses imagemagick to overlay some text and saves it as webcam.jpg this happens every x minutes via cron now i want to grab the ...
0
votes
0answers
38 views

Bash - Removing all but a single number in output of command

I'm working on a script to process all images in which the standard deviation is less than a certain threshold, e.g., if overall SD is less than 50 in x image, do y to x. The command I am using to ...
0
votes
0answers
210 views

Error in converting color pdf into grayscale pdf in Linux - 'File has errors…'

I have been trying to convert a color pdf to a grayscale pdf prior to printing to avoid the color printing costs. I am using Debian and ImageMagick commands: convert -monochrome swp574.pdf output2....
0
votes
0answers
124 views

Batch appending (set side by side horizontally) entire folder of images in pairs using imagemagick

I'm trying to figure out the correct command(s) to batch append (and output with a sequentially numbered (incremented) filename) an entire folder of PNG files, in pairs. i.e. I have a folder of ...