Questions tagged [imagemagick-convert]

The "convert" command, from the ImageMagick® software suite is a program to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

1387 questions
8
votes
4 answers

Chop 4 sides of image with Imagemagick

I have the following image: test PNG 1366x655 1366x655+0+0 8-bit sRGB 286KB 0.000u 0:00.000 and I need to chop it like this from the border of the image: top: 140 px bottom: 140 px left: 180 px right: 60 px Is there a one-line command line to do…
Gery
  • 8,390
  • 3
  • 22
  • 39
8
votes
2 answers

ImageMagick: dyld: Library not loaded. Reason: image not found

I downloaded ImageMagick from https://www.imagemagick.org/script/download.php#macosx extracted it to ~/Documents/software my .profile looks like this: export MAGICK_HOME="~/Documents/software/ImageMagick-7.0.7" export…
dev4life
  • 10,785
  • 6
  • 60
  • 73
8
votes
1 answer

Imagemagick adding and reading comment

I am trying to add a comment to an image using imagemagick and read it back For adding a comment i can do convert -comment "processed" original.jpg converted.jpg Now the output of identify -verbose converted.jpeg Properties: comment:…
akash
  • 1,801
  • 7
  • 24
  • 42
8
votes
2 answers

Bash convert resize recursively preserving filenames

Have images in subfolders that need to be limited in size (720 max width or 1100 max height). Their filenames must be preserved. Started with: for img in *.jpg; do filename=${img%.*}; convert -resize 720x1100\> "$filename.jpg" "$filename.jpg"; done…
motorbaby
  • 634
  • 7
  • 18
8
votes
1 answer

Cleaning up an image for OCR with ImageMagick and 'textcleaner'

I have the following image that I'd like to prepare for an OCR with tesseract: The objective is to clean up the image and remove all of the noise. I'm using the textcleaner script that uses ImageMagick with the following parameters: ./textcleaner…
Edi
  • 969
  • 3
  • 9
  • 20
8
votes
2 answers

ImageMagick: reduce image size

I am using ImageMagick to reduce the image resolution, height and width. I have noticed a few things. When I am changing resolution at "Image Size" through Photoshop (version 7) from 300dpi to 150dpi image height and width automatically change.…
user4156827
  • 117
  • 2
  • 5
8
votes
1 answer

ImageMagick convert and GNU parallel together

I would like to speed up the following command: convert -limit memory 64 -limit map 128 -antialias -delay 1x2 final/*.png movie.mp4 I have seen other blog posts where parallel and convert were used together so I am wondering how to make it work…
aeupinhere
  • 2,883
  • 6
  • 31
  • 39
8
votes
1 answer

Convert pdf to jpg using ImageMagick without Ghostscript

I'm trying to convert pdf to jpg using ImageMagick php. It seems that ImageMagick needs Ghostscript to work with pdfs however my shared hosting provider does not allow the installation of Ghostscript since it makes use of shell_exec() and exec(). So…
ion
  • 1,033
  • 2
  • 16
  • 46
8
votes
2 answers

Combining multiple images in ImageMagick with relative (not absolute) offsets

I'm looking for the most efficient way to stitch multiple images together in ImageMagick, on top of a background image, such that the spacing / padding between the overlaid images is consistent? I've investigated use of +append, convert -composite,…
Przemek Kujonewicz
  • 131
  • 1
  • 1
  • 3
7
votes
2 answers

How to crop a image into several rectangular grids using imagemagick

How can I cut a large image into a grid so that the smaller images can be uploaded to Instagram, to make up the large image in the grid view? I think imagemagick can be used for this.
Siddharth Dushantha
  • 1,391
  • 11
  • 28
7
votes
2 answers

Blur part of image in Imagemagick

What convert command do I use to blur part of an image. For now I am using convert source.jpg -fill white -draw "polyline 671,395 665,356 812,331 818,370" result.jpg It creates white four points shape on the image, but I need blur all of this…
Dima Magunov
  • 163
  • 3
  • 9
7
votes
0 answers

Rails 4 CarrierWave (master) and MiniMagick: change file format

I'm using Rails 4.2, CarrierWave master branch, and MiniMagick 4.3.6 (also using the CarrierWave::MiniMagick module). According to the CarrierWave Docs it is possible to change the format of a file during the upload/processing stage. However, I do…
Dan L
  • 4,319
  • 5
  • 41
  • 74
7
votes
2 answers

Convert svg image to png with transparent background

How can I convert svg images to png with transparent background. I have almost 4000 svg images to covert. I tried to use many converter but they can't supply transparent background. i saw imagemagick . But how can I use this to convert all of my…
Faisal Ahmed
  • 91
  • 1
  • 1
  • 5
7
votes
6 answers

Starting ImageMagick process on windows server failing with "the specified module could not be found."

I'm using ImageMagick to convert PDF files to PNG. Running the process from my Web API project locally works as long as I run Visual Studio as admin. When moving the solution to the server the ImageMagick process fails with the following error…
Stavros_S
  • 2,145
  • 7
  • 31
  • 75
7
votes
2 answers

Image Magick preserve transparency

I an trying to use Image Magick to create a new large png from several small png's but the smaller image do not have their transparency preserved. I am creating a 6000x6000 image and placing smaller png's at specific locations and some of them…
Trevor Orr
  • 927
  • 1
  • 14
  • 31